https://github.com/peterwade153/ivents
go REST API
https://github.com/peterwade153/ivents
github-actions golang gorm-orm jwt-tokens rest-api
Last synced: 2 months ago
JSON representation
go REST API
- Host: GitHub
- URL: https://github.com/peterwade153/ivents
- Owner: peterwade153
- License: mit
- Created: 2019-11-07T13:29:52.000Z (over 6 years ago)
- Default Branch: staging
- Last Pushed: 2019-12-02T14:46:18.000Z (over 6 years ago)
- Last Synced: 2025-08-15T05:54:59.426Z (8 months ago)
- Topics: github-actions, golang, gorm-orm, jwt-tokens, rest-api
- Language: Go
- Homepage:
- Size: 70.3 KB
- Stars: 6
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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
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
### Running tests
$ go test ./...