An open API service indexing awesome lists of open source software.

https://github.com/gabrielroot/flask_user_crud


https://github.com/gabrielroot/flask_user_crud

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

User CRUD

###

About ptoject

###


This project is a CRUD made with


Flask starter App 🚀

as an introduction to the discipline of software architecture.


###

### Techs
- Flask
- Flask==2.2.0
- Flask-SQLAlchemy==3.0.2
- Flask-Migrate==4.0.0
- Flask-WTF==1.0.1
- passlib==1.7.4
- PostgreSql
- Docker
- Dockerfile
- docker-compose

###

Made with

###


flask logo
python logo
postgresql logo
docker logo
html5 logo
css3 logo
bootstrap logo


---


## Commands
> *In the root directory of the App:*

- `docker-compose up -d`, to start the app in background;
- `docker-compose down`, to stop the app;
- `docker attach [APP_NAME|ID]`, to start monitoring a container;
- `docker exec -it [CONTAINER]`, to run a command in a container.

#### Migrations
> *Run the following lines when needs to manage migrations:*
- `docker exec -it main_crud_flask flask db init`, to create a folder with set to migration;

- `docker exec -it main_crud_flask flask db migrate -m "Initial migration."`, to generate a migration;

- `docker exec -it main_crud_flask flask db [upgrade|downgrade]`, to up/down changes based on migration files.


## Urls
> *Accessible when the environment is running:*
- [App](http://localhost:8000/)
- [Adminer](http://localhost:8080/)


## Tips ✨
- Start the app in non background mode (Or attach them when already running), so you can see the log of error and print outputs!