https://github.com/krishnalagad/restapi-with-fastapi
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python. In this repository I've created API's for MongoDB CRUD operation using FastAPI.
https://github.com/krishnalagad/restapi-with-fastapi
fastapi-sqlalchemy hashing-algorithm jwt-authentication sqlite-database
Last synced: 3 months ago
JSON representation
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python. In this repository I've created API's for MongoDB CRUD operation using FastAPI.
- Host: GitHub
- URL: https://github.com/krishnalagad/restapi-with-fastapi
- Owner: krishnalagad
- Created: 2023-08-18T16:34:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-30T10:32:25.000Z (almost 2 years ago)
- Last Synced: 2025-01-20T13:44:55.382Z (5 months ago)
- Topics: fastapi-sqlalchemy, hashing-algorithm, jwt-authentication, sqlite-database
- Language: Python
- Homepage:
- Size: 41 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# restapi-with-FastAPI
#### FastAPI is a modern, fast (high-performance), web framework for building APIs with Python. In this repository I've created API's for SQLite database CRUD operation using FastAPI.
#### I have used SQLAlchemy ORM to deal with database tables. Project contains usage of Http Responses according to their Http request type.## Steps to start with FastAPI.
#### 1. Install Virtuale Environment
```
pip install virtualenv
```#### 2. Create Virtual Environment for project.
##### Locate the directory of your project in your terminal and below mentioned command.
```
virtualenv venv
```#### 3. Activate virtual environment
```
For Windows: 1) cd venv/scripts
2) activate
For Linux: source venv/bin/activate
```#### 4. Install required packages.
```
cd ..
pip install -r requirements.txt
```#### 5. Create main python file. e.g. index.py, main.py etc
#### 6. Run the app
```
uvicorn index:app --reload
```#### 7. To deactivate virtual environment use this command:
```
deactivate
```