Coder Social home page Coder Social logo

e-commerce's Introduction

Full-stack E-commerce App

Work Under Progress

The payment process is running in test mode, which means that the app does not support real purchases and only stripe's test cards work. Since this is not a real store but a personal project, it will remain in test mode.

Technologies and frameworks used

React
Redux
Cloudinary
Stripe.js
Node.js
Express
MongoDB

Ideas to implement

  • Responsive design
  • User authentication
  • Admin dashboard
  • Product filters
  • Search bar
  • User reviews

Run Locally

1. Install server dependencies

From project root:

cd server
npm install

2. Add environment variables

Create an .env file and add the following variables. (You will need a Stripe.js and MongoDB Atlas account)

// SAMPLE CONFIG .env, you should put your own details

PORT=3003
MONGODB_URI=mongodb+srv://username:[email protected]/App?
TEST_MONGODB_URI=mongodb+srv://username:[email protected]/App_test?
STRIPE_SECRET_KEY=sk_test_z6Wgj3W5n3eYSLEKPRJ4OrE900vpjOnFhP

3. Run development server

npm run dev

4. Install client dependencies

From project root:

cd client
npm install

5. Change requests url

Change the constant variable baseUrl in client/src/services/order.js and client/src/services/products.js to the local url your server is running on.

6. Run client

npm start

Note: If the products are not loading, then the server (which is hosted on railway) is not live. This is because I am using railway's free tier and I have ran out of credits. The server will be up when the next month starts.

Previews

Preiew1 Preiew2

e-commerce's People

Contributors

d-stn avatar

Watchers

 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.