Skip to content

developmentseed/moz-proenergia-web

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

Project use pnpm. If you don't have it yet, get pnpm first by running the command below.

npm install -g pnpm

Install dependencies:

pnpm install

You need to set up Mapbox token in your env file to be able to run the application locally. Save your token in .env as NEXT_PUBLIC_MAPBOX_TOKEN.

NEXT_PUBLIC_MAPBOX_TOKEN=YOUR_MAPBOX_TOKEN

After installing dependencies and setting up Mapbox token, run the development server:

pnpm dev

Open http://localhost:3000/ with your browser to see the result.

Build

The command below will build the website.

pnpm run build

The command below will build the production version of website, with base path defined.

pnpm run build-prod

Configuration

Website Name and Description

Edit src/config/website.ts to change the website title and description:

export const WEBSITE_TITLE = "Proenergia + IEP";
export const WEBSITE_DESC = "Proenergia";

Base Path

Edit NEXT_PUBLIC_BASE_PATH variable in build-prod command that you can find from package.json

...
"build-prod": "NEXT_PUBLIC_BASE_PATH=/app next build --webpack && rm -rf .out-tmp && mv out .out-tmp && mkdir out && mv .out-tmp out/app",
...

Learn More

To learn more about the framework this project is using Next.js, take a look at the following resources:

About

Mozambique PROENERGIA+ Frontend

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors