This is the front-end of the application.
To install the dependencies, run the following command in the root directory of the project:
npm ciTo generate the production build, run the following command in the root directory of the project:
npm run buildTo run the build production app, run
npm startEnsure the dependencies are installed.
npm ciCopy 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.localRun the following command to start the development server:
npm run devAnd you're done! See the app running at http://localhost:3000.
To lint the code, run the following command:
npm run lintThis also checks for prettier formatting. To explicitly format the code with prettier, run the following command:
npm run prettierIt'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.