Skip to content

CHOUMMANIVONGDimitri/api_fastapi_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api_fastapi_python

An API using Python and FastAPI

Installation

  1. Clone the repository: Use the following command to clone the repository from GitHub:

    git clone <repository_url>

  2. Virtual Environment: Create a virtual environment in the cloned directory:

  • On Windows:

    python -m venv venv
    .\venv\Scripts\activate
    
  • On macOS and Linux:

    python3 -m venv venv
    source venv/bin/activate
    
  1. Install Dependencies: Install dependencies from the requirements.txt file using the command:

    pip install -r requirements.txt

  2. Configure Environment Variables: Copy the .env.example file to create .env and configure appropriate values for environment variables, such as database connection information.

  3. Project Execution: Use the command to run the project (example with FastAPI and Uvicorn):

    uvicorn app:app --host $HOST --port $PORT

  4. Access the Application: Access the URL specified in Uvicorn (by default, http://localhost:8000) to interact with the application.

Note: Make sure you have Python and Git configured on your system before starting the installation process.

License (TO DO)

About

An API with python and fastAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages