Skip to content

AltusConsulting/open311-backend

Repository files navigation

open311-backend

This is a backend to create reports from the Smart Cities application

Getting Started

To start using this project first you must install Golang.

Prerequisites

The following dependencies are used in this project:

This backend uses a Elasticsearch for storing reports created in the Smart Cities application, also a Amazon Web Service S3

for image storage, as a second option for the image storage you could use a Minio these are all required by this backend.

in the config.toml file you can configure the address of the different services That this backend makes use of.

[311]
host = "<PUT YOUR AWS S3 ADDRESS HERE>"
[minio]
host = "<PUT YOUR MINIO ADDRESS HERE>"
accessKeyID = "<PUT YOUR ACCESS KEY ID HERE>"
secretAccessKey = "<PUT YOUR SECRET ACCESS KEY HERE>"
[server]
port = 9090
[s3]
region = "<PUT YOUR AWS S3 REGION HERE>"

Installing

Once Golang is installed clone this repository and run the following command at your project root

go get

This will download all the dependencies required.

Deployment

Once you have installed Elasticsearch and Minio (or Amazon Web Service S3 configured) run them on your machine.

Go to the project's root and execute the following command in your terminal:

go run main.go

You could use Postman for testing all endpoints of this backend.

Contributing

...

Versioning

This is the initial version We use SemVer for versioning.

Authors

License

...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages