Skip to content

AdhityaRamadhanus/chronicle

Repository files navigation

chronicle

Go Report Card Build Status

Experimental golang microservices rest api without orm on news domain

Entities: Topics Stories

Database: postgres cache-server: redis

Authentication: JWS

Installation | Usage | License

chronicle is rest api microservices about news.

This project is only for experiment. There is much work to do for this project to be complete.

Installation (For Development)

  • git clone
  • set environt variables in .env (example below)
  • change config if necessary in config/development/config.yml
ENV=development

PORT=8000

PG_DATA_DIR=/home/path/to/your/postgresql-container-data

// leave this for production
PRODUCTION_JWT_SECRET=
PRODUCTION_CACHE_RESPONSE=

PRODUCTION_LOGGLYTOKEN=
PRODUCTION_LOGGLYHOST=

PRODUCTION_REDIS.HOST=
PRODUCTION_REDIS.PORT=
PRODUCTION_REDIS.PASSWORD=
PRODUCTION_REDIS.DB=
  • docker-compose up
  • create database "chronicle" on postgres
  • create database "chronicle-test" on postgres
  • run migration
make migration
  • run build
make
  • run chronicle

Usage

  • You will need access token to use the api
  • generate access token
make generate-token

License

MIT © [Adhitya Ramadhanus]

About

Experimental golang microservices without orm

Resources

License

Stars

Watchers

Forks

Packages

No packages published