/sus-server

Simple URL Shortener Server

Primary LanguageGoMIT LicenseMIT

sus-server

Server for the Simple URL Shortner client.

Requirements

  • Go 1.13
  • A PostgreSQL database

Running

To run the server, the following environment variables need to be set first:

DATABASE_URL=postgres://xxxxxxxxxxxxxxxxxxxxxxxx
PORT=xxxx

These can also be loaded from a .env file placed in the root directory.

The server can then be built and started by running

./run.sh