vacina-pet

command module
v0.0.0-...-b8bd235 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MPL-2.0 Imports: 1 Imported by: 0

README

VacinaPet

CircleCI

Run with Docker

Running docker-compose up will start 3 containers:

  • vacina-pet: The API accessible via http://localhost:8000/api
  • mongo: The mongodb database. Use the mongo-express as UI to manage the data.
  • mongo-express: Simple UI to manage the mongodb. Accessible via http://localhost:8081 with the creadentials basicuser:123456

Use docker-compose up -d to avoid printing logs and docker logs vacina-pet --follow to see only the API logs.

Use docker-compose stop to stop containers, or docker-compose down to stop and remove the containers.

MongoDB Test

The MongoDB tests run against a testing database built within the docker configuration. To make them pass locally, the following enviroment variables are necessary:

export TESTING_DB_URI=mongodb://admintest:123456@localhost:27017/testing_database
export TESTING_DB_NAME=testing_database

Frontend

We have a React application as frontend, which is rendered by the golang api, that can be found in the frontend folder.
Once you have the application running, you'll be able to access the frontend and navigate trough the application on http://localhost:8000.

To learn how to work with the frontend, please read the README placed inside the frontend folder.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
helper

Jump to

Keyboard shortcuts

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