World rural population webapp using react for forntend and flask for backend api.
We have server and client side of code and hence run them seperately.
Download the zip file or git clone the work( git clone git@github.com:techopus/W-Ruralpopulation.git )
- Go to the 'flask-server' directory and create a virtual environment and activate the environment.
- pip install -r requirements.txt
- python3 server.py
- Go to 'frontend-dashboard' directory.
- npm install
- npm run start
Now, since the server and the client are going to be run on different ports, CORS has to be enabled in the browser to allow their communication. (If an express server had been used, CORS would have been enabled from there).
Can find CORS extensions download link here for different browsers: https://mybrowseraddon.com/access-control-allow-origin.html?v=0.1.6&type=install