This is the front-end of the application.
To install the dependencies, run the following command in the root directory of the project:
npm ci
To generate the production build, run the following command in the root directory of the project:
npm run build
To run the build production app, run
npm start
Ensure the dependencies are installed.
npm ci
Copy the example local environment variables to .env.local
so they can be used by NextJS. Modify the variables as necessary. The NextJS server must be restarted to use any changed environment variables.
cp .example.env.local .env.local
Run the following command to start the development server:
npm run dev
And you're done! See the app running at http://localhost:3000.
To lint the code, run the following command:
npm run lint
This also checks for prettier
formatting. To explicitly format the code with prettier
, run the following command:
npm run prettier
It's recommended to enable the prettier
plugin in VS Code to automatically format the code when you save it. See this page or this one for more information.
Node.js is required (includes npm). You can download it here: https://nodejs.org/en/download/. LTS will work.
This project uses Next.JS (with TypeScript and chakra-ui).
Here's a decent tutorial for learning React: https://www.taniarascia.com/getting-started-with-react/.
And here's a React "cheatsheet": https://www.freecodecamp.org/news/the-react-cheatsheet/.
You will also find these in the relevant files in the demo branch.