https://github.com/saifkhan192/docker-flask-sokcets-mongodb-api
Docker, Flask, MongoDB, Sockets API
https://github.com/saifkhan192/docker-flask-sokcets-mongodb-api
flask heroku mongodb python socketio
Last synced: 2 months ago
JSON representation
Docker, Flask, MongoDB, Sockets API
- Host: GitHub
- URL: https://github.com/saifkhan192/docker-flask-sokcets-mongodb-api
- Owner: saifkhan192
- Created: 2022-02-23T13:30:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-23T15:41:31.000Z (over 4 years ago)
- Last Synced: 2025-03-24T08:49:43.004Z (over 1 year ago)
- Topics: flask, heroku, mongodb, python, socketio
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker, Flask, MongoDB, Sockets API
[](https://www.linkedin.com/in/saifullah-khan-02318086/)
A Simple project that uses Docker, Flask, MongoDB, Sockets
## Features
- 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
## Project structure
```sh
│ ├── 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
```
## Getting started
```make
git clone https://github.com/saifkhan192/docker-flask-sokcets-mongodb-api.git
cd docker-flask-sokcets-mongodb-api
make build && make run_app
```
## Deployed on Heroku
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
## Tests
### Running Test Cases
```bash
make run_tests
```
## Usefull Make Commands
```make
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
```