This is a project for Platzi's FastAPI course.
- Twitter API
- Table of Contents:
- Description
- Features
- Tech Stack
- Installation
- Run it locally
- Documentation
- Contributing
- Authors
- License
Twitter REST API made with FastAPI for learning purposes.
- User signup and login.
- JSON Web Tokens Authentication.
- FastAPI Routers.
- SQLite3 conecction with SQLAlchemy.
- SQLAlchemy models.
- Data validation.
- Users CRUD operations.
- Tweets CRUD operations
- Pydantic models.
- FastAPI, Python 3.10, SQLite3, SQLAlchemy
- Clone or download the repository:
git clone https://github.com/betofleitass/twitter-fast-api
- Go to the project directory
cd twitter-fast-api
- Create a virtual environment (PowerShell):
python -m venv venv
venv\Scripts\Activate.ps1
- Install dependencies:
pip install -r requirements.txt
-
Go to the app directory:
cd app
-
Change the
env.example
file name to.env
, pay atenttion to the dot before env. -
Run the server:
uvicorn main:app --reload
-
Open a browser and go to:
http://127.0.0.1:8000/
Once the server is running go to http://localhost:8000/docs to view the API documentation.
Contributions are always welcome!
-
Fork this repository;
-
Create a branch with your feature:
git checkout -b my-feature
; -
Commit your changes:
git commit -m "feat: my new feature"
; -
Push to your branch:
git push origin my-feature
.
This project is under MIT License.