Categorygithub.com/peterwade153/ivents
modulepackage
0.0.0-20191202144600-4a825e64038b
Repository: https://github.com/peterwade153/ivents.git
Documentation: pkg.go.dev

# README

ivents

ivents is a one stop center for all venues for all types events

Installation.

Should have Go and Postgres installed

Clone the repository.

git clone https://github.com/peterwade153/ivents.git

Environment variables

Create a database and create a .env from the .env-sample and replace its values with the actual values.

Running application

Change directory into ivents then

$ go run main.go

API endpoint can be accessed. Via http://localhost:5000/

Endpoints

RequestEndpointsFunctionality
POST/registerUser Signup ( firstname, lastname, email, password)
POST/loginUser Login ( email, password)
POST/api/venuesAdd Venue ( name, description, location, capacity, category)
GET/api/venuesView Venues
GET/api/venues/idView Venue
PUT/api/venues/idUpdate Venue ( name, description, location, capacity, category)
DELETE/api/venues/idDelete Venue

Running tests

$ go test ./...

# Packages

No description provided by the author
No description provided by the author