This project is built with Next.js on top of React.
- Node.js 10.13 or later
Run npm install
in the root directory to install all the relevant dependencies such as React, Next.js etc.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
Hot reloading is available in this mode, i.e. the page will reload if you make edits.
You will also see any lint errors in the console.
Starts a Next.js production server at http://localhost:3000. Take note to build the app using npm run dev
or next
before starting the server.
Builds the app for production to the .next
folder.
Exports your app into static HTML, which can be run standalone without the need of a Node.js server. The static version of the app will be available in the out
directory.
Runs a series of checks on the code formatting according to the .prettierrc.json
configuration file.
Automatically formats the code according to the .prettierrc.json
configuration file.
You can learn more in the Getting Started With Next.js.
To use environment variables within the project:
mv .env.sample .env
- Add environment variables inside
.env
- Add environment variables inside
next.config.js