A simple notes making app made using Flask, React, Material-UI and MongoDB.
Set up Guides
After cloning the app locally, you will to follow the following steps to get running:
01. Install dependencies
$ python3 -m venv .venv $ source .venv/bin/activate $ pip install -r requirements.txt
$ cd frontend $ yarn install
$ cd frontend $ npm i
02. Start the flask app
Running this command will initiate the backend server.
$ python main.py
03. Start Webpack server
$ cd frontend $ yarn start
API requests from frontend will automatically get redirected to
http://localhost:5000. Make sure that this is the right address where flask is running. If its not, then you can manipulate the
frontend/package.jsonto point to the correct address.
$ cd frontend $ yarn build
Frontend has been configured to automatically write the build files at
<PROJECT_ROOT>/build rather than
<PROJECT_ROOT>/frontend/build. This helps flask easily find the files and serve them as static in production mode.