https://github.com/sanishmaharjan/boilerplate-python
https://github.com/sanishmaharjan/boilerplate-python
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sanishmaharjan/boilerplate-python
- Owner: sanishmaharjan
- Created: 2018-12-03T08:48:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-02T07:55:16.000Z (over 6 years ago)
- Last Synced: 2025-01-08T21:59:40.059Z (5 months ago)
- Language: Python
- Size: 20.5 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Boiler Plate Python
Boiler Plate for Simple Python Application## Setup python virtual environment
### 1. Create an environment:
```bash
cd boilerplate-python
python3 -m venv venv
```### 2. Activate environment:
```bash
. venv/bin/activate
```## Install dependancies:
```bash
pip3 install -r requirements.txt
```## Run application
### 1. Install pip3 if not already install in your system
```bash
python3 main.py
```## Install Alembic
```bash
sudo apt-get install alembic
```## Db Migration
```bash
# Create a Migration Script
alembic revision -m "migration name"# Running Migration
alembic upgrade head
alembic upgrade +2# Downgrade Migration
alembic downgrade [revision]
alembic downgrade -2
```