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
serverdirectory and type the following command to createsecret.keyfile:
$ cd server
$ openssl rand 256 > secret.key- Move into the
frontenddirectory and type the following command to make the frontend build:
$ cd frontend
$ npm run build- Keep Mongo running and start the server in the
serverdirectory:
$ python app.py --plant_initial_clusters=<boolean value> --tree_count=<integer value>Open the link at the server's running port in the browser