Running the Application

Learn how to run the application

Before proceeding, you'll need to have the last stable NodeJS and npm installed on your machine.

You can use nvm (macOS/Linux) or nvm-windows to switch Node versions between different projects.

Install dependencies

Open the project folder and install its dependencies. You can use any package manager you want: Yarn or npm. There might be other package managers that were not listed here.

cd project-folder
npm install

Start development server

Once the installation is done, you can now run your app by running npm run dev or yarn dev.

npm run dev

This runs the app in development mode. Open localhost:3000 to view it in the browser.

While in development mode, the page will automatically reload if you make changes to the code. Should you have any, you will see the build errors and lint warnings in the console.

The app uses ESLint, so you will get detailed warnings and errors as well as best practice hints.

Build project files

npm run build

Builds the app for production to the build folder. It correctly bundles React in production mode and optimizes the build for the best performance.

Start production server

npm run start

Executing this command with npm will launch your server, enabling your application to go live and serve users. This step signifies the transition from development to a fully operational production environment.