https://github.com/gabrielroot/flask_user_crud
https://github.com/gabrielroot/flask_user_crud
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gabrielroot/flask_user_crud
- Owner: gabrielroot
- License: mit
- Created: 2022-12-11T22:38:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-12T14:19:18.000Z (over 3 years ago)
- Last Synced: 2025-01-28T22:31:31.524Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 233 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
###
---
## 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!