Code Monkey home page Code Monkey logo

chmod351 / ecommerce-api-rest-javascript-node-mongo Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 3.0 8.75 MB

This is a fully functional e-commerce platform that will allow you to have a solid foundation as an initial project, even deploy it. The project uses JSON Web Token for session management, Google OAuth as an alternative for logging in, Stripe as the payment gateway.

Home Page: https://ciervademo.onrender.com/

License: GNU General Public License v3.0

JavaScript 99.69% Dockerfile 0.31%
backend-api ecomerce-app ecommerce ecommerce-api ecommerce-application ecommerce-applications ecommerce-site ecommerce-store ecommerce-website ecommerce-website-using-mern

ecommerce-api-rest-javascript-node-mongo's Introduction

INDEX

About this project

This is a fully functional e-commerce platform that will allow you to have a solid foundation as an initial project, even deploy it. The project uses JSON Web Token for session management, Google OAuth as an alternative for logging in, Stripe as the payment gateway. Feel free to collaborate/fork the project.

Development Environment Setup

To set up the development environment for this project, follow these steps:

  • Download Docker Desktop & Docker File (production only)

  • Or you can just install Node.js v16.20.1 (or a compatible version) on your system.

  • Clone the project repository using git clone https://github.com/yamilt351/api-rest.git

  • Install project dependencies using npm or yarn. Run npm install or yarn install in the project root directory.

  • Configure the environment variables required for the project.

MONGO=mongodb+srv://USERNAME:[email protected]/ecomerce?retryWrites=true&w=majority
JWT_TOKEN=z&&2DbCJa9d3gZkxFwJdE$&hHbRe47KHxAF%&N#qRVx*zVFG$W
PORT=3000
STRIPE_TOKEN=sk_text_YourStripeToken

SECRET:your_google_oauth_secret
CLIENTID:your_google_oauth_cliendId
  • Start the application using npm run dev or yarn run dev to launch the application.
  • Access the application in a web browser using the provided URL or port number.

Available Endpoints

Postman Documentation

Tests

npm run test

Live demo & Product Explanation.

Demo This a simple demo. Shoping Cart State is hanlde by the frontend, so you can store the shoping cart items init and still keep it even if the user is not loged into the app. This guarantee an excelent user experience btw, bc the user can explore your site before making orders. The backend provide pagination for some routes, for more info check the Documentation

Contribution.

  • Read The Documentation
  • Fork The Project
  • Make Atomic Changes , keep them small keep them easy
  • You have to provide Evidences in your PRs (Postman requests,covering much edge cases as you can)
  • Make git pull before create your PR

Licence

The Project is under GPL Licence

ecommerce-api-rest-javascript-node-mongo's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.