An open source FullStack: Docker Compose + NGINX + WsGI + Python3.6 + Flask/Eve framework + MongoDB + Webpack4 + Vue.js-ES6 client
- RESTful API + Swagger Api Docs
- Authentication
- NoSQL Storage (MongoDB)
- Javascript-ES6 client + Webpack
Author: Gonzalo Plaza gonzalo@verize.com
- Clone repository
git clone https://github.com/verize/docker-pymongo-vue.git docker-pymongo-vue
cd docker-pymongo-vue
- Add Python Virtual Environment and install dependencies (For development purposes)
virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
pip install -r dev-requirements.txt
Note: To upgrade Pip requirements, just execute (and follow instructions):
pip-upgrade
- Install client js dependencies, compile assets:
yarn install && yarn upgrade
yarn run dev
- App configuration You need to copy .env.dist to .env file (root folder) and set your own parameters To generate secret key visit this page: https://randomkeygen.com/
Configuration vars:
FLASK_ENV=development
MONGO_HOST=localhost
MONGO_PORT=27017
MONGO_DBNAME=''
MONGO_USERNAME=''
MONGO_PASSWORD=''
SECRET_KEY=''
- Run server (development):
python server.py
Server will run by default under http://localhost:5000
docker-compose pull
docker-compose build --no-cache
docker-compose up -d --force-recreate
After containers started, you can access application server through your browser: http://app.local .
The code in this project is licensed under MIT LICENSE. Read file for more information.
- Improve Docker integration and deployment
- Adds Webpack HMR (Hot Module Replacement)
- Adds SSR (Server Side Rendering)
- Improve Authentication process / roles
- Installation command
- Adds Prettier and Python Linters
- Basic Tests