https://github.com/ganggas95/flask-cbv
Just for learning how to write flask app with class basic view
https://github.com/ganggas95/flask-cbv
flask flask-marshmallow flask-restplus flask-sqlalchemy microservices python-3 restapi
Last synced: about 2 months ago
JSON representation
Just for learning how to write flask app with class basic view
- Host: GitHub
- URL: https://github.com/ganggas95/flask-cbv
- Owner: ganggas95
- Created: 2018-12-30T16:04:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-30T16:22:07.000Z (over 7 years ago)
- Last Synced: 2025-03-06T10:43:16.965Z (over 1 year ago)
- Topics: flask, flask-marshmallow, flask-restplus, flask-sqlalchemy, microservices, python-3, restapi
- Language: Python
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example Flask Class Basic View
This is sample project using to implement Class Basic View in Flask. This just for learning. In this project will tech you, how to write flask app using Class Basic View.
## Installation Package
This app using this package:
1. Flask
2. Flask Migrate
3. Flask Marshmallow
4. Marshmallow SQLAlchemy
5. PyMysql for database dialect
6. Flask-Restplus for Building Rest Api and Swagger Documentation
7. Flask-Script for executing our app using Command Line Interface (CLI)
8. Flask-SQLAlchemy for Database ORM(Object Relation Mapping)
To install all packages you just running this command in your terminal.
```$ pip install -r requirements.txt```
## Running Apps
Before you run this apps. You should have to create database. And change DATABASE_URI, API_VERSION, APP_MODE and SECRET_KEY in ```tools\migrate.sh``` and ```tools\run.sh``` with your database name, api version, app mode with this options [production, testing, develompent] and your secret key. And running ```tools\migrate.sh``` to create database and all object to table in database.
And next run your application with execute ```$./todos/run.sh```
Open your browser and go to this url ```http://localhost:8009/api/$YOUR_API_VERSION/todos```
### ***Happy Coding and Keep Learning***