A Simple project that uses Docker, Flask, MongoDB, Sockets
- Todo: Authentication Layer
- Todo: Add modules for Models, Repositories, Services etc
- Todo: Exception handling
- Todo: Use Redis for caching
- Todo: Use Marshmallow Schemas for response building for apps
│ ├── direction_service.py
│ ├── exceptions.py
│ ├── flask_app.py
│ ├── flask_app.pyc
│ ├── fontend_app.py
│ ├── geo_helper.py
│ ├── helper.py
│ ├── __init__.py
│ ├── models.py
│ ├── mongo_helper.py
│ ├── repositories.py
│ ├── run_server.py
│ ├── tests
│ │ ├── config.py
│ │ ├── conftest.py
│ │ └── test_trip.py
│ └── wsgi.py
├── ccurl.md
├── docker
│ ├── bash_history.log
│ ├── docker-compose.yml
│ ├── DockerfileApp
├── gunicorn_starter.sh
├── Makefile
├── Procfile
├── pytest.ini
├── README.md
├── requirements.txt
├── runtime.txt
├── static
└── templates
└── socker-client-page.html
git clone https://github.com/saifkhan192/docker-flask-sokcets-mongodb-api.git
cd docker-flask-sokcets-mongodb-api
make build && make run_app
Link for Home page: https://docker-flask-sokcets-mongodb.herokuapp.com/
Link for Socket Demo Page: https://docker-flask-sokcets-mongodb.herokuapp.com/socket-frontend
make run_tests
make follow_logs #show flask debug output
make bash_app #ssh into the app
make refresh_app #recreate app if flask does not reload on files changes