• Key Features
• Installing Using Github
• End Point
• Technologi that i use
• Contact me
- Auth
- Employee
- Clock In
- Clock Out
- Swagger OpenAPI
installing and running the app from github repository
To clone and run this application, you'll need Git and Golang installed on your computer. From your command line:
# Clone this repository
$ git clone https://github.com/reski-id/AttendanceApp.git
# Go into the repository
$ cd AttendanceApp
# Install dependencies
$ go get
# Run the app
$ go run main.go
# if you have problem while running you can use bash cmd and type this..
$ source .env #then type
$ go run main.go #again
Note Make sure you allready create database mysql
attendancedb
for this app.more info in local.env
andutils/database.go
file.
Auth
Methode | End Point | used for |
---|---|---|
POST |
/api/v1/register | Register |
POST |
/api/v1/login | Login |
Employee
Methode | End Point | used for |
---|---|---|
GET |
/api/v1/employees | Get all employees |
GET |
/api/v1/employees/:id | Get One employees |
GET |
/api/v1//employees/search | Searching a employees |
POST |
/api/v1/employees | Insert employees |
PUT |
/api/v1/employees/:id | Update data employees |
DELETE |
/api/v1/employees/:id | Delete employees |
Attendance
Methode | End Point | used for |
---|---|---|
POST |
/attendance/clock-in/:id | Clock IN |
POST |
/attendance/clock-out/:id | Clock OUT |
after you running the app you can access swagger open api in this http://localhost:8080/swagger/index.html
you can find postman testing in /screenshoot/
folder
This software uses the following Tech:
- Golang
- Echo Framework
- Gorm
- OpenAPI Swaggo
- mysql
- Linux
- Docker
- Dockerhub
- Git Repository
- Trunk Base Development
feel free to contact me ...
- Email [email protected]
- Github
- Whatsapp Send WhatsApp Message