server

module
v0.0.0-...-1317d33 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: GPL-3.0

README

UpMeet Server

This repository contains the REST API server for UpMeet.

Go Reference build Codacy Badge

Development Setup

  1. Clone the repository
  2. Install dependencies (go mod download)
  3. Run docker-compose -f dev.docker-compose.yml up -d to start up the development stack. (Currently only PostgreSQL)
  4. Setup environment variables (.env file is supported)
  5. Run go run cmd/server/main.go to start the server

Environment Variables

  • UPMEET_DEBUG: Whether to enable debug mode.
  • UPMEET_BIND_ADDRESS: The address to bind the web server to.
  • UPMEET_FIREBASE_CREDENTIALS: The Firebase service account key JSON file encoded into Base64.
  • UPMEET_POSTGRES_HOST: The hostname of the PostgreSQL server.
  • UPMEET_POSTGRES_PORT: The port of the PostgreSQL server.
  • UPMEET_POSTGRES_USER: The username of the PostgreSQL server.
  • UPMEET_POSTGRES_PASSWORD: The password of the PostgreSQL server.
  • UPMEET_POSTGRES_DATABASE: The PostgreSQL database name.
  • UPMEET_POSTGRES_SSL: The PostgreSQL SSL mode.

Directories

Path Synopsis
cmd
pkg
domain/mock
Package mock_domain is a generated GoMock package.
Package mock_domain is a generated GoMock package.

Jump to

Keyboard shortcuts

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