Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

I1820/backend.go

Repository files navigation

WebBackend

Travis branch Codacy Badge Go Report Buffalo GoDoc

Introduction

Each platform with microservice architecture has a web backend component. It just like a glue and tries to put everything together in a simple fashion. I1820 backend, it provides a single interface to all services. It adds user management and authorization into the platform. And at the end it hosts our web application that is written in Angular with ❤️ and memory of someone who is not among us.

Notes that are worth taking

Users must have an unique username in I1820 platform. Backend heavily uses JWT tokens for each of its works.

Operations need token refreshing

  1. Create project

Up and Running

To build this module from source do the following steps

  1. Make sure MongoDB is up and running.

  2. Install the required dependencies (Please note that we use dep as our go package manager)

dep ensure
  1. Check the configuration in .env file. (You can use .env.example as an example configuration).

  2. Run 🏃

go build
./backend
  1. Create MongoDB indexes
buffalo task mongo