This is a Next.js project bootstrapped with create-next-app
.
This website aims at encouraging people to become more concerned about the importance of our environment and promotes planting of trees among masses. It aims to provide a gamified challenge to keep people motivated at planting trees.
Clone the repo
git clone https://github.com/aritroCoder/MoreTrees
cd MoreTrees
Generate the node modules folder
npm install
Then, after generating the node_modules
create a .env.local
file in the root directory, and add two lines here:
SECRET_KEY = "YOUR_SECRET_KEY"
NEXT_PUBLIC_MONGODB = "YOUR_MONGODB_URL"
where secret key is any string you can use and mongodb url is a valid local or cloud mongodb URL.
Note: If you are unable to set up mongodb URL, then you can use this testing URL: mongodb+srv://testuser:cgfBXbObcJwcikDg@testcluster.llctihc.mongodb.net/moretrees
. But keep in mind you wont be able to view the database in that case to debugging can be difficult
Then, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.js
. The page auto-updates as you edit the file.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
Contribution can be done by solving existing issue or suggesting a bug fix/feature request via a new issue