E-commerce made using Javascript and MySQL database.
Explore the docs »
·
Report Bug
·
Request Feature
For this project I have made a diagram creating different tables and the relationship between them (1:N, N:M, N:M).
- User login + logout. Token (JWT) + middleware.
- Creation of a CRUD.
- User registration using Bcrypt.
- At least one Many to Many relationship and another One to Many.
- Use of seeders.
User:Orders have a (1:N) relationship since a user can have several orders but an order can only belong to one user.
Orders:Products had a relationship of (N:M) so an intermediate table was created, and automatically the two Foreing Key remain in the mentioned tables
Products:Categories had a relationship of (N:M) so an intermediate table was created, and automatically the two Foreing Key remain in the mentioned tables.
- Below I have an example
# Clone the repository
$ git clone https://github.com/victorcodigos/1-proyecto-e-commerce-backend
# Enter the directory
$ cd 1-proyecto-e-commerce-backend
# Install the dependencies
$ npm install
# start or project
$ npm start
CRUD is the acronym for CREATE, READ, UPDATE and DELETE. These terms describe the four essential operations for creating and managing persistent data elements, mainly in relational and NoSQL databases.
This project helps me a lot. From now I do understand the CRUD concept and I can create, view, modify and remove the data from the database, I can virtually create any application I can imagine.
Bcrypt is an algorithm designed to hash and salt passwords for safe storage. It's an industry standard that's time-tested and proven to resist threats from hackers and other malicious agents.
Middleware is software that lies between an operating system and the applications running on it. Essentially functioning as hidden translation layer, middleware enables communication and data management for distributed applications.
JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be verified and trusted because it is digitally signed. JWTs can be signed using a secret.
- Add a different style
- Add more products
- Add reviews
- Add send email from servidor
- Add validation
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the project
- Create your feature Branch (
git checkout -b feature/YourName
) - Commit your changes (
git commit -m 'Add some YourName
) - Push to the branch (
git push origin feature/YourName
) - Open a pull request.
📩 Or if you want to send me an email: victor.macedo.dedeus@gmail.com