This is the official code for https://charter.africa site
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.
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.
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
Chrome DevTools debugging is enabled by default for both client-side and server-side code. See Next.js docs for more information.