Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.05 KB

README.md

File metadata and controls

45 lines (29 loc) · 1.05 KB

Charter Africa

This is the official code for https://charter.africa site

Getting Started

First create .env.local file in the root directory of the project.

cp env.template .env.local

and modify the .env.local file according to your needs.

Note

The default .env file is for the publicly visible environment variables. DO NOT include any secrets in it. All secrets should go into env.local. For more, see NextJS env var docs here.

Database setup

Generate a new MongoDB keyfile by running the following command: NB: Run this command on the root directory

make mongodb-keyfile

Start the database server: NB: Run this command on the root directory

make mongodb

Then run the development server:

pnpm dev

Debugging

Chrome DevTools debugging is enabled by default for both client-side and server-side code. See Next.js docs for more information.