This is the backend part of the project Inprinte
To run the project, you need golang 1.17, so you can install it using this link
Clone the project
https://github.com/inprinte/backend
Go to the project directory
cd backend
Start the server
go run main.go
To deploy this project
Clone the project
https://github.com/inprinte/backend
Go to the project directory
cd backend
Build the docker image
docker build --tag inprinte-backend .
Run the docker image specifying the port
sudo docker run -d -p 8080:8080 inprinte-backend
GET /
GET /boutique
GET /produit/{id_product}
Parameter | Type | Description |
---|---|---|
id_product |
string |
Required. Id of product to fetch |
GET /user/{id_user}
Parameter | Type | Description |
---|---|---|
id_user |
string |
Required. Id of user to fetch |
POST /connexion
Parameter | Type | Description |
---|---|---|
email |
json |
Required. email of the user |
password |
json |
Required. password of the user |
POST /inscription
Parameter | Type | Description |
---|---|---|
firstname |
json |
Required. firstname of the user |
lastname |
json |
Required. lastname of the user |
email |
json |
Required. email of the user |
password |
json |
Required. password of the user |
phone |
json |
Required. phone of the user |