Should have Go and Postgres installed
Clone the repository.
git clone https://github.com/peterwade153/ivents.git
Create a database and create a .env
from the .env-sample
and replace its values with the actual values.
Change directory into ivents then
$ go run main.go
API endpoint can be accessed. Via http://localhost:5000/
Request | Endpoints | Functionality |
---|---|---|
POST | /register | User Signup ( firstname, lastname, email, password) |
POST | /login | User Login ( email, password) |
POST | /api/venues | Add Venue ( name, description, location, capacity, category) |
GET | /api/venues | View Venues |
GET | /api/venues/id | View Venue |
PUT | /api/venues/id | Update Venue ( name, description, location, capacity, category) |
DELETE | /api/venues/id | Delete Venue |
$ go test ./...