Skip to content

inprinte/backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inprinte backend

This is the backend part of the project Inprinte

Installation

To run the project, you need golang 1.17, so you can install it using this link

Run Locally

Clone the project

https://github.com/inprinte/backend

Go to the project directory

cd backend

Start the server

go run main.go 

Deployment

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

API Reference

Get home informations

GET /

Get shop informations

GET /boutique

Get product informations

GET /produit/{id_product}
Parameter Type Description
id_product string Required. Id of product to fetch

Get user informations

GET /user/{id_user}
Parameter Type Description
id_user string Required. Id of user to fetch

Login

POST /connexion
Parameter Type Description
email json Required. email of the user
password json Required. password of the user

Sign up

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

Authors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published