A simple social media application according to the category you want to submit, which has 2 ADMIN and MEMBER levels.
Tutorial Install Thread Mini Apps with Golang, don't forget to setting .env (change name file .env_example)
git clone https://github.com/c0rz/Thread-Mini-App.git
cd Thread-Mini-App
go get
go run main.go
To run this project, you will need to add the following environment variables to your .env file, example in file .env_example
| Request |
Type |
Description |
email |
string |
Required, Format Email. Email Address |
password |
string |
Required. Password |
| Request |
Type |
Description |
name |
string |
Required. Full Name |
email |
string |
Required, Format Email. Email Address |
password |
string |
Required. Password |
| Request |
Type |
Description |
title |
string |
Required. Title Thread |
text |
string |
Required. Body Thread |
category_id |
string |
Required. Category ID |
| Parameter |
Type |
Description |
id |
integer |
Required. ID Thread |
| Parameter |
Type |
Description |
id |
integer |
Required. ID Thread |
| Parameter |
Type |
Description |
id |
integer |
Required. ID Thread |
Insert/Add Comment in Thread
| Parameter |
Type |
Description |
id_post |
integer |
Required. ID Thread |
comment |
text |
Required. Comment |
| Parameter |
Type |
Description |
name |
string |
Required. Name Category |
DELETE /admin/category/:id
| Parameter |
Type |
Description |
id |
integer |
Required. ID Category |
Database: PostgreSQL
Server: Golang, Gin, sql-migrate