Skip to content

marveldo/Fastapi_Startapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FASTAPI APP

FastAPI STARTUP

Setup APPLICATION

  1. Create a virtual environment.
   python -m venv env
  1. Activate virtual environment.
    source /path/to/venv/bin/activate`
  1. Install project dependencies pip install -r requirements.txt

  2. Start server.

python management.py runserver 

you could also specify the host and port to run

python management.py runserver ${host} ${port}

DATABASE SETUP

Starting the database run

python management.py makemigrations

run on cloning the repository and after making changes to the models also create a revision folder if it does not exist in the alembic directory


**review table data**

```bash
python management.py Hello

Adding new tables and columns to models

After creating new tables, or adding new models make sure to import the models in the alembic/env file then run python management.py makemigrations

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published