A simple CORS enabled rest server. Python and mongo are a great match because both speak json natively so there is no need for conversions when interacting with the database.
At this point we are missing the U in CRUD but updates are to be expected.
This is part of a client/server boilerplate. The client side repository is here.
Requirements:
- Python
- pip
- Flask -
sudo pip install Flask
- Flask cors -
pip install -U flask-cors
- PyMongo -
python -m pip install pymongo
- FlaskPymongo -
pip install Flask-PyMongo
- Flask -
- pip
The Stack:
- Webpack
- Lodash
- Webpack-dev-server
- Babel
- Babel-loader
- Babel-core
- Babel-preset-es2015
- Babel-preset-react
- React
- React-dom
- Mobx
- Mobx-react
- Python
- Pymongo
- Flask
- Flask-cors
- MongoDb
python sever.py
it will listen to port 5000