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.
- 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.
Typescript, NodeJS, Express, MongoDB, Mongoose, FireBase, Stripe, NodeMailer, Cloudinary, SendGrid
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
- Replace all
.envinformation with database information
- Open the project console
- Inside
apifolder, run the command line,yarn add.
- Inside
- Open the project console
- Inside
apifolder, run the command line,yarn run devand go tohttp://localhost:4000/.
- Inside
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

