code-named: Asel --- An authentication system trial with Flask
- MySQL
- Docker
Documentation and setup instructions for the project.
Project built with / based on following techs:
- Docker & Docker-Compose
- Python 3.5 & Flask
- MySQL
- React
The project consists of 2 docker containers:
db
web_app
You can inspect docker-compose.yml file for more details on images and containers.
I didn't like the idea of creating and modifying databases in the host machine.
With Docker, we have absolute freedom to play with our isolated database.
God save Docker!
The only required dependency is Docker
. This is the docker version of the computer that project was developed:
$ docker --version
Docker version 17.09.0-ce, build afdb6d4
Docker 17
is NOT required BUT recommended. Previous versions of docker might work, but not tested.
To install Docker, you can visit official web site.
To run the application, first, clone the repository:
$ git clone git@github.com:alioguzhan/asel.git
cd
into project folder:
$ cd asel
And start it with docker-compose:
$ docker-compose up --build
Note: The --build
arg is required only for the first time. Unless you don't modify source code of any service, you don't need to --build
containers every time to run the project.
Now go to http://localhost:5000 to see it in action.
If you want to change or update the code, feel free to do it. But once you edited the code, you need to build that service before running. You can either build each container itself, or you can pass an argument to docker-compose command:
$ docker-compose up --build
This will build all containers before running.
- Improve Design for Mobile
- Don't store passwords as raw text in db
It is the name of my nephew who was born on the same day as i started this project.