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.
React
Redux
Cloudinary
Stripe.js
Node.js
Express
MongoDB
- Responsive design
- User authentication
- Admin dashboard
- Product filters
- Search bar
- User reviews
From project root:
cd server
npm install
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
npm run dev
From project root:
cd client
npm install
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.
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.