Skip to content

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.

Notifications You must be signed in to change notification settings

aritroCoder/MoreTrees

Repository files navigation

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

MoreTrees.com

Screenshot of website
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.

Getting Started

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.

Learn More

To learn more about Next.js, take a look at the following resources:

Contributing

Contribution can be done by solving existing issue or suggesting a bug fix/feature request via a new issue

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •