The front-end for FEATURE.sh, built with NextJS and TailwindCSS.
A development Dockerfile has been set up to ease the development process. One can execute the following script to build and run an instance of the dev container:
npm run docker-dev
# OR, if using yarn
yarn docker-dev
The app directory is bind mounted inside the container in development, which means that every change made on the host also impacts the running container.
Install dependencies and start the dev server as follows:
npm install && npm run dev
# OR, if using yarn
yarn install && yarn dev
A production Dockerfile has been created to easily deploy the app.
To build and run an instance of the production image, execute the docker-prod
node script:
npm run docker-prod
# OR, if using yarn
yarn docker-prod
Install dependencies, build, and start the production server as follows:
npm install && npm run build && npm run start
# OR, if using yarn
yarn install && yarn build && yarn start
The codebase is formatted using the prettier tool.
Issuing the command npm run format
or yarn format
will make use of the local installation of prettier
to format the entire codebase.
Internationalized routing is handled natively by NextJS through sub-path routing.
Management of translations is done with the next-i18next
library. Supported locales can be found inside the public/locales
directory. Translations are
stored inside different .json
files commonly referred as translation namespaces.
stored inside different .json
files commonly referred as translation namespaces.