yarn installThis project uses Prettier for code formatting to maintain consistent style across all JavaScript and TypeScript files.
Husky is used as a pre-commit hook. It automatically formats the code and adds the changes to the commit if any formatting inconsistencies are found.
You will need to run the Django backend. Once that is running, specify its URL in the .env under
NEXT_PUBLIC_BACKEND_URL=<url of django backend>
Next, generate a security secret using https://generate-secret.vercel.app/32 and set it in
NEXTAUTH_SECRET=<secret>
Finally, select an available port on your system and define the URL for this frontend
NEXTAUTH_URL=http://localhost:<port>
Now you can start the application
yarn devOpen http://localhost:<port> with your browser to see the result.
Refer to this guide
Make sure you have docker and docker compose installed.
- Install docker
- Install docker compose
The env varibales will be picked up from the .env file during the yarn build stage. This will copy all the env variables starting with NEXT_PUBLIC_ (that get embedd into the javascript code). The env varibales starting without NEXT_PUBLIC_ will be picked up during run time. Run the script:
bash docker-build.sh "image_name:tag"Once the image is built, add that image_name:tag to the Docker/docker-compose.yaml file
Run the script:
bash docker-compose.sh