/website

Primary LanguageShell

This project is built with Next.js on top of React.

Prerequisites

Setting up

Run npm install in the root directory to install all the relevant dependencies such as React, Next.js etc.

Available Scripts

In the project directory, you can run:

npm run dev or next

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.

npm run start or next start

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.

npm run build or next build

Builds the app for production to the .next folder.

npm run export or next build && next export

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.

npm run lint

Runs a series of checks on the code formatting according to the .prettierrc.json configuration file.

npm run format

Automatically formats the code according to the .prettierrc.json configuration file.

Learn More

You can learn more in the Getting Started With Next.js.

Environment Variables

To use environment variables within the project:

  1. mv .env.sample .env
  2. Add environment variables inside .env
  3. Add environment variables inside next.config.js