This was Desafio Latam's last exam
View Demo
·
View full page
Table of Contents
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.
To get a local copy up and running follow these simple example steps.
-
pnpm
iwr https://get.pnpm.io/install.ps1 -useb | iex
-
PostgreSQL Click here
-
AWS Account Click here
- Create a S3 bucket
- Clone the repo
git clone [email protected]:Rydozz15/marketplace-back-end.git
- Install PNPM packages
pnpm install
- 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
- Run the scema.sql inside config>db
psql -U <user> -a -f <route>
- Enter your .env in and write down your database credentials and the port
DB_HOST= USER_DB= PASSWORD_DB= NAME_DATABASE= PORT=
- In the samae fil in JWT_SECRET add yoout secret code to encrypt.
- Enjoy!
You can connect your Front-End and use this as an example, or play with it on Swagger. Example Front-End
Distributed under the MIT License. See LICENSE.txt
for more information.
Juan Pablo Fuentes - [email protected]
Thanks to my team
- Sabastián, Paula and Gabriel