https://github.com/adhityaramadhanus/chronicle
Experimental golang microservices without orm
https://github.com/adhityaramadhanus/chronicle
Last synced: 2 months ago
JSON representation
Experimental golang microservices without orm
- Host: GitHub
- URL: https://github.com/adhityaramadhanus/chronicle
- Owner: AdhityaRamadhanus
- License: mit
- Created: 2018-11-02T10:29:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-04T10:15:16.000Z (over 6 years ago)
- Last Synced: 2025-02-05T07:15:47.203Z (4 months ago)
- Language: Go
- Size: 1.75 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chronicle
[](https://goreportcard.com/report/github.com/AdhityaRamadhanus/chronicle) [](https://travis-ci.org/AdhityaRamadhanus/chronicle)
Experimental golang microservices rest api without orm on news domain
Entities:
Topics
StoriesDatabase: postgres
cache-server: redisAuthentication: 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=developmentPORT=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
``` bash
make migration
```
* run build
```bash
make
```
* run chronicleUsage
-----
* You will need access token to use the api
* generate access token
```bash
make generate-token
```License
----MIT © [Adhitya Ramadhanus]