Advert service for vertical classified
Features:
- Completely ready for use
- Specification first
- Code generation for boilerplate code
- Auto-migration for DB
- Similar to CQRS
Dependency
Setup
After install all dependencies, follow these simple steps:
- Create db and Postgis extension
$ sudo su - postgres
$ psql
$ CREATE DATABASE advertservice;
$ \c advertservice
$ CREATE EXTENSION postgis;
- Update config for connect to DB and PORT
$ nano Makefile
- Create DB scheme:
$ make migrate
- Start app:
$ make run
Documentations
$ make run
$ open http://localhost:8000/docs
Testing
$ make test