Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/evscott/aedibus-api-old

To see this projects Kanban board install the Zenhub Chrome/Firefox extension.
https://github.com/evscott/aedibus-api-old

Last synced: 22 days ago
JSON representation

To see this projects Kanban board install the Zenhub Chrome/Firefox extension.

Awesome Lists containing this project

README

        

# aedibus-api

### Prerequisites

1. Ensure that you have [go](https://golang.org/) installed.
2. Ensure that you have [docker](https://www.docker.com/) installed.
3. Ensure that you have [docker-compose](https://docs.docker.com/compose/install/) installed.

### Installing

To run the API without Docker you have to install its dependencies. Inside of the api root directory, run:
```
go get ./...
```

*Note: the API requires a database connection to successfully boot*
## How to use

### Run the application with docker-compose

Inside of the api root directory, run:

```
docker-compose down && sudo docker-compose up --build
```

### Clean database history

Inside of the api root directory, run:

```
sudo rm -rf postgres-data
docker volume prune
docker rm $(docker ps -a -q)
```

## Architecture

### API

![uml](./assets/aedibus-api-UML-d1.png)

*Note: this diagram is a rough draft and omits many details*

### DB

![uml](./assets/aedibus-db-UML-d1.png)

## Authors

* **[Eliot Scott](https://github.com/evscott)** - *Initial work*

See also the list of [contributors](https://github.com/your/project/contributors) who participated in this project.