Skip to content

daewu14/m-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

M-Service

For microservice purpose

Step installation and run your server

  1. Setup virtual environment
    python3 -m venv venv
  2. Use virtual environment
    • Linux/Mac
       source venv/bin/activate
    • Windows
      venv\Scripts\activate.bat
  3. Install requirements
    pip install -r requirements.txt
  4. Run http app
    python3 run.py http

UCase

Tools usage

  1. Generate new ucase
    python3 run.py ucase new
    •  Folder new ucase : {new-ucase-folder-name}
      
    •  New UCase name (on app/ucase/package) : {new-ucase-name}
      
    Result : Success create new ucase package with 1 ucase
  2. Generate existing ucase folder
    python3 run.py ucase update
    •  Folder existing ucase : {existing-ucase-folder-name}
      
    •  New UCase name (on app/ucase/package) : {new-ucase-name}
      
    Result : Success create new ucase package with 1 ucase

Migrations

Common tools usage

  1. Generate migration, example :
    python3 run.py migration --create="create table users"
    
    You will got new file like this migrations/1739724108_321825_create_table_users.py
  2. Run migration up
    python3 run.py migration --migrate=up
    
  3. Run migration down
    python3 run.py migration --migrate=down
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages