Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI

Simple Application (REST API)

Bookstore

Technologies:

FastAPI Python Pydantic
FastAPI Python Pydantic

Installation

1. Clone this repository:
git clone https://github.com/yourusername/your-repo-name.git
cd your-repo-name
2. Create a virtual environment (optional but recommended):
python -m venv venv
venv\Scripts\activate.bat  # On Windows
source myenv/bin/activate  # On Linux
3. Install the required packages using pip (or other package manager):
pip install fastapi uvicorn
4. Run the FastAPI application:
python main.py --port <port_number>

Where <port_number> is an integer representing the port on which the application will run. For example, to start the application on port 8080, execute the command:

python main.py --port 8080

If the --port parameter is not specified, the application will default to running on port 8000.

Once the application is running, you can open your browser and navigate to the following address:

If you specified a different port, for example, 8080, you would use:

Note: localhost and 127.0.0.1 are synonyms that refer to your local computer. You can use either of these addresses to access your application.

This instruction will help users of your application understand how to run it and which addresses to use in the browser.

About

Bookstore (FastAPI)

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages