Skip to content

le-patrice/blogapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blogapi

## FastAPI Project Setup Guide

Welcome to the FastAPI project! Follow these simple steps to set up and run the project on your local machine.

## 1. Setting Up the Environment

To ensure everything runs smoothly, it's recommended to use a virtual environment:

1. Navigate to the main project directory:
   ```bash
   cd /path/to/project
  1. Create a virtual environment:
    python -m venv env
  2. Activate the virtual environment:
    • On Linux/macOS:
      source env/bin/activate
    • On Windows:
      .\env\Scripts\activate

2. Install Requirements

With the virtual environment activated, install the required packages:

pip install -r requirements.txt

3. Run the Application

To start the project, simply run the following command:

python main.py &
  • The & runs the application in the background, allowing you to continue using the terminal.

4. Manage Background Process

To manage the background process:

  1. List all running jobs:

    jobs -l
  2. Locate the job process ID associated with the running project.

  3. Kill the background process:

    kill <jobprocess>

    Replace <jobprocess> with the specific process ID.

5. Access the Application

Once the application is running, open your web browser and navigate to:

http://127.0.0.1:8000

About

FastAPI blog project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages