- Completely ready for use
- Specification first
- Code generation for boilerplate code
- Auto-migration for DB
- Similar to CQRS
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
$ make run
$ open http://localhost:8000/docs
$ make test