Skip to content

Rydozz15/marketplace-back-end

Repository files navigation

Marketplace Back-End with Express.js

This was Desafio Latam's last exam

View Demo · View full page

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License
  5. Contact
  6. Acknowledgments

About The Project

Product Name Screen Shot

This API RESTful was the back-end of a project as the middle man between the front-end and the PostgreSQL database.

Functions:

  • Products: All of them, in detail and the ones that the user uploaded.
  • Fav Products: Wishlist, that's it.
  • User: Create User and Login, including Google OAuth 2.0
  • Orders: All about purchasing and updating the status of an order.

(back to top)

Built With

  • Node
  • Express
  • Swagger
  • PostgreSQL
  • JWT
  • Jest

(back to top)

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

Installation

  1. Create a S3 bucket
  2. Clone the repo
    git clone [email protected]:Rydozz15/marketplace-back-end.git
  3. Install PNPM packages
    pnpm install
  4. Enter your .env in and write down this AWS Credentials aspects
    AWS_S3_BUCKET_REGION=us-west-2
    AWS_ACCES_KEY_ID=YOUR_ACCESS_KEY_ID_PLACEHOLDER
    AWS_SECRET_ACCES_KEY=YOUR_SECRET_ACCESS_KEY_PLACEHOLDER
    AWS_BUCKET_NAME=YOUR_BUCKET_NAME_PLACEHOLDER
  5. Run the scema.sql inside config>db
    psql -U <user> -a -f <route>
  6. Enter your .env in and write down your database credentials and the port
    DB_HOST=
    USER_DB=
    PASSWORD_DB=
    NAME_DATABASE=
    PORT=
  7. In the samae fil in JWT_SECRET add yoout secret code to encrypt.
  8. Enjoy!

(back to top)

Usage

You can connect your Front-End and use this as an example, or play with it on Swagger. Example Front-End

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Juan Pablo Fuentes - [email protected]

(back to top)

Acknowledgments

Thanks to my team

  • Sabastián, Paula and Gabriel

(back to top)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published