Skip to content

markets-center/markets-center-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

271 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markets Center - API

About

This project consists of the development of a S.P.A (Single Page Application). It is part of the Bootcamp Henry group project, in which a group of 7 developers participated. On this page, you can access as a seller and thus create, edit and delete products that are for sale and view your sales history. As a buyer you have access to a favorites section, shopping cart, profile with your data and purchase history, you can also make purchases using the Stripe payment gateway. Finally, the admin actor will be able to keep track of the categories, the purchases made and the users.

Objectives

  • Create a profile with your data.
  • Create, edit, delete and search products.
  • Filter by categories and sellers.
  • Sort alphabetically and by price.
  • Add products to the shopping cart and buy them.
  • Add products to the favorite list.
  • Add comments and rating to a bought product.
  • Manage users, categories, orders and see statistics graphic of seller orders in admin profile.

Stack of Technologies

Typescript, NodeJS, Express, MongoDB, Mongoose, FireBase, Stripe, NodeMailer, Cloudinary, SendGrid

Deploy
Review in Youtube

BoilerPlate

You must create an Firebase, MongoDB, Stripe, Cloudinary and SendGrid accounts and create a file called: .env that has the following form:

MONGO_URL=mongo_url
CLOUDINARY_CLOUD_NAME=cloudinary_cloud_name
CLOUDINARY_API_KEY=cloudinary_api_key
CLOUDINARY_API_SECRET=cloudinary_api_secret
GOOGLE_APPLICATION_CREDENTIALS=google_application_credentials
EMAIL_SERVICE=SendGrid
EMAIL_USERNAME=api_key
EMAIL_PASSWORD=email_password
EMAIL_FROM=marketscenter.pg@gmail.com
STRIPE_API_KEY=stripe_api_key

Next

Connect the data base

  • Replace all .env information with database information

Install the necesary package to run it

  • Open the project console
    • Inside api folder, run the command line, yarn add.

Run the project

  • Open the project console
    • Inside api folder, run the command line, yarn run dev and go to http://localhost:4000/.

Some Examples of Public Endpoints

GET /products
GET /products?name=Papas
GET /products/:id
GET /categories
GET /filter?id
GET /filter?category=Bebidas
GET /filter?id&&categories=Bebidas
GET /users/sellers

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors