Welcome to the Code Carbon Next.js Project! This README will guide you through the process of setting up and running the project on your local machine.
Before you begin, ensure you have the following installed on your system:
- Node.js (version 14 or later)
- npm (usually comes with Node.js)
- Git
Follow these steps to get the project up and running on your local machine:
-
Open a terminal and go to the /webapp folder
cd webapp -
Install dependencies
npm install
-
Set up environment variables
This project uses environment variables for configuration. You need to create a
.envfile in the root directory of the project.-
Copy the
.env.examplefile and rename it to.env:cp .env.example .env
-
Open the
.envfile and fill in the necessary values for your local environment.
-
-
Run the development server
npm run dev
The application should now be running on http://localhost:3000.
In the project directory, you can run:
npm run dev: Runs the app in development modenpm run build: Builds the app for productionnpm start: Runs the built app in production modenpm run lint: Runs the linter to check for code style issues
To learn more about Next.js, check out the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.