- Download golang in this link
- Install golang (usual installation)
- Make sure golang path added to your advance system settings (system variables path)
- Check whether your golang successfully installed by typing this command on command line/terminal
go version
- Open XAMPP Control Panel and start MySQL (start apache if you open it from phpMyAdmin)
- Create database 'findor_db'
- Make sure findor database created!
-
Clone this project
git clone https://github.com/novaguinea/findor.git -
Open your terminal and direct to findor's folder
-
Just to make sure all dependencies are installed run this in your command line (CLI)
go mod tidy -
Open your XAMPP Control Panel and start MySQL
-
Run findor project by run this command in CLI/terminal
go run main.go -
Open your favorite web browser and access
localhost:8080/if it run successfully your browser will showing "hehe hello"
Base URL = localhost:8080
| Activity | Method | API | Param / Return |
|---|---|---|---|
| Get All Users | GET | /user |
index : {id, name, email, password, address, skill, phone, age, isAvailable, avatarURL} |
| Get A User | GET | /user/:id |
{id, name, email, password, address, skill, phone, age, isAvailable, avatarURL} |
| Register | POST | /user |
{name, email, password, confirmPwd} |
| Login | POST | /login |
{email, password} |
| Edit Profile / Edit Password / Edit User Data | PUT | /user/:id |
name // email // password // address // skill // phone // age // isAvailable // avatarURL |
| Delete User | DELETE | /user/:id |
-- |