This GitHub repo contains the backend API for an online store or ecommerce. Built with Node.js and TypeScript using the Express framework.
- User authentication using JWT and Passport.js
- MySQL database connected through TypeORM for reliable and intuitive database operations
- Nodemailer integration for sending emails, including password recovery and other notifications
- Cloudinary API for storing and managing product images
- Boom for sending developer-friendly errors to the frontend
- Joi for data filtering and validation to ensure data consistency and integrity.
- Clone this repository
https://github.com/jorgezerpa/dashboard-ecommerce.git
- Install all dependencies (preferibly use clean install)
npm ci
or
npm install
-
create a .env file on the root folder and set the needed variables. (You will find enviroment variables information on the .env.example file).
-
Run the project with the command:
npm run dev
- THAT'S ALL! here you can see the API documentation.