An open API service indexing awesome lists of open source software.

https://github.com/shamaevnn/covirally-tmp


https://github.com/shamaevnn/covirally-tmp

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# Coverally-tmp
## Task description
Service to store and transfer inner coins via FastAPI. Number of functions:
* 100 bonus coins for new users
* Transfer coins to other user regarding balance limits
* Viewing own balance

## API
These endpoints are available:

## First run
1. Create virtual environment and install dependencies
```bash
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install -r requirements.dev.txt
```
2. Install `pre-commit` hooks
```
pre-commit install-hooks
pre-commit install
```
3. Create `.env` file, don't forget to set proper variables
```
cp .env_example .env
```

## Running locally
1. Run all necessary services
```bash
make services
```
2. Apply migrations
```
make migrate
```
3. Run backend on FastAPI
```
make dev
```
4. Check http://0.0.0.0:80/docs, everything should be OK!

## Tests
```
make run_tests
```

## Linter
```
make format
make lint
```