Skip to content

TreeBase - Community Friendly Tree Plantation WebApp

Notifications You must be signed in to change notification settings

adityavinodk/tree_map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tree Plantation App

Flask-React app with MongoDB

Installation

  1. Clone the repository
$ git clone https://github.com/adityavinodk/tree_map.git
$ cd tree_map
  1. Create a virtual environment (optional).

  2. Install all requirements using pip:

$ pip install -r requirements.txt
  1. Move into the server directory and type the following command to create secret.key file:
$ cd server
$ openssl rand 256 > secret.key
  1. Move into the frontend directory and type the following command to make the frontend build:
$ cd frontend
$ npm run build
  1. Keep Mongo running and start the server in the server directory:
$ python app.py --plant_initial_clusters=<boolean value> --tree_count=<integer value>

Open the link at the server's running port in the browser