/xtrame

make a point api for booking cinema ticket application

Primary LanguageGoMIT LicenseMIT

Xtrame Streame with Go (Golang) REST API 🚀

make a point api for booking cinema ticket application

Used libraries:

Run Locally

Create .env at root, i.e.

DATABASE_URL=postgresql://${{ PGUSER }}:${{ PGPASSWORD }}@${{ PGHOST }}:${{ PGPORT }}/${{ PGDATABASE }}
PGHOST=your_local
PGPORT=5432
PGUSER=postgres
PGPASSWORD=your_password
PGDATABASE=your_db_name
PORT=8080

Setup Db after create database in your postgres

CREATE TYPE role AS ENUM ('admin', 'user');

Run

go run cmd/main.go