tereus-api

command module
v0.0.0-...-6d1408b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

tereus-api

Requirements

  • Docker
  • Docker Compose
  • Git
  • Node.js v16.x

Setting up the API and storage services

The docker-compose.yml file inside the repo contains the following services:

  • api: The API service
  • postgres: The PostgreSQL service for database
  • minio: The MinIO service for object storage
  • nsqd: The NSQ service for queuing

Setting up the API with the services is done by running the following commands:

git clone git@github.com:tereus-project/tereus-api.git
cd tereus-api
cp env.example .env
docker-compose up -d

The docker-compose services, including the API, use environment variables to configure themselves. The .env.example file contains the environment variables that you need to set for a local environment, but you can modify the file to your own needs.

The docker containers should look like this:

~/tereus/tereus-api ‹main› » docker-compose ps
         Name                        Command                  State                                               Ports
----------------------------------------------------------------------------------------------------------------------------------------------------------------
tereus-api_api_1          /go/bin/air                      Up             0.0.0.0:1323->1323/tcp
tereus-api_minio_1        /usr/bin/docker-entrypoint ...   Up (healthy)   0.0.0.0:9000->9000/tcp, 0.0.0.0:9001->9001/tcp
tereus-api_nsqadmin_1     /nsqadmin --lookupd-http-a ...   Up             4150/tcp, 4151/tcp, 4160/tcp, 4161/tcp, 4170/tcp, 0.0.0.0:4171->4171/tcp
tereus-api_nsqd_1         /nsqd --lookupd-tcp-addres ...   Up             0.0.0.0:4150->4150/tcp, 0.0.0.0:4151->4151/tcp, 4160/tcp, 4161/tcp, 4170/tcp, 4171/tcp
tereus-api_nsqlookupd_1   /nsqlookupd                      Up             4150/tcp, 4151/tcp, 0.0.0.0:4160->4160/tcp, 0.0.0.0:4161->4161/tcp, 4170/tcp, 4171/tcp
tereus-api_postgres_1     docker-entrypoint.sh postgres    Up             0.0.0.0:5432->5432/tcp

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
ent

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址