Flask-React app with MongoDB
- Clone the repository
$ git clone https://github.com/adityavinodk/tree_map.git
$ cd tree_map
-
Create a virtual environment (optional).
-
Install all requirements using pip:
$ pip install -r requirements.txt
- Move into the
server
directory and type the following command to createsecret.key
file:
$ cd server
$ openssl rand 256 > secret.key
- Move into the
frontend
directory and type the following command to make the frontend build:
$ cd frontend
$ npm run build
- 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