Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
/ app Public

Backend service that provides a RESTful API for an e-commerce based application.

License

Notifications You must be signed in to change notification settings

guifaxina/app

Repository files navigation

Arketfy Server Side

This project is a backend service that provides a RESTful API for an e-commerce based application.

The API allow users to create and remove and add products stored in MongoDB. Users are divided in two different categories: Admins and Customers. The API also includes authentication and authorization mechanisms to ensure that only authorized users can access and manipulate the data.

Installation Guide

These instructions will get you a copy of the project up and running on your local machine. The installation guide assumes that you have Docker and Docker Compose installed. Make sure that you have it and you are good to go!

  1. Clone the project:
$ git clone "https://github.com/guifaxina/app.git" <optional:folder>
  1. Open the folder that you specified
$ cd <folder>
  1. Build the image and run a Docker container:
$ docker compose up && docker compose run -d 

The server will now be running on "http://localhost:3001"

API Endpoints

Customer

Method Endpoint Description
GET /user/user-data Retrieve user data.
GET /user/select-product Retrieve the selected product.
GET /user/get-products Retrieve all products.
POST /user/register Create a new user.
POST /user/login Sign in user.
PATCH /user/buy Update the inventory.

Admin

Method Endpoint Description
POST /admin/add-new-product Create new product.
DELETE /admin/delete-product/:id Delete product by id.

Built with

  • TypeScript
  • NodeJS
    • Express
  • MongoDB
  • Docker

Author

About

Backend service that provides a RESTful API for an e-commerce based application.

Topics

Resources

License

Stars

Watchers

Forks