https://github.com/drtey/socialapi
Trying to emulate a basic social network´s API with python
https://github.com/drtey/socialapi
bcrypt fastapi jwt oauth2 postgres postgresql psycopg2 pydantic pytest python python3 sqlalchemy
Last synced: about 2 months ago
JSON representation
Trying to emulate a basic social network´s API with python
- Host: GitHub
- URL: https://github.com/drtey/socialapi
- Owner: drtey
- Created: 2022-09-16T18:50:08.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-12T18:18:20.000Z (over 3 years ago)
- Last Synced: 2025-01-21T15:36:20.237Z (over 1 year ago)
- Topics: bcrypt, fastapi, jwt, oauth2, postgres, postgresql, psycopg2, pydantic, pytest, python, python3, sqlalchemy
- Language: Python
- Homepage:
- Size: 45.4 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# socialAPI
REST API developed with [Python](https://www.python.org/), [FastAPI](https://fastapi.tiangolo.com) & [PostgreSQL](https://www.postgresql.org/)
where you can register users, create and vote posts
Model Validation, JWT Authentication, ORM, Unit testing, password hashing, etc
Stack: SQLAlchemy, psycopg2, OAuth2, bcrypt, pydantic, JWT, FastAPI...
### Run project
```
$ uvicorn app.main:app --reload
```
## Build
### Install dependencies
```
$ pip install -r requirements.txt
```
### Create virtual environment
```
$ python3 -m venv
$ source /bin/activate
```
### PostgreSQL
```
$ sudo apt install postgresql postgresql-contrib
$ sudo service postgresql start
$ sudo -u postgres psql
postgres=# CREATE DATABASE ;
```
To change default pass for "postgres" DB user (NOT UNIX User):
```
postgres=# \password postgres
```
### Documentation
http://127.0.0.1:8000//docs & http://127.0.0.1:8000//redoc