An e-commerce website made with React.js, Redux, Node.js, Express.js, MongoDB, Cloudinary, and The PayPal API.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
A step by step series of examples that tell you how to get a development env running.
$ git clone https://github.com/aahmad4/My-Tech-Shop
Use the package manager npm or yarn to install the required packages.
$ npm install
$ cd client
$ npm install
or
$ yarn install
$ cd client
$ yarn install
Using concurrently, this will run the back-end server and client-side application at the same time. By default, the back-end will run on port 5000 and the React app will be visible in your browser at port 3000.
$ npm run dev
In the root directory create a file named .env
with the following enviornment variables. For the MongoDB URI, PayPal Client ID, and Cloudinary App Information, simple register an account at the appropriate services and create your credentials there. Once completed, paste the value into this file next to the correct variables.
NODE_ENV = development
PORT = 5000
MONGO_URI =
JWT_SECRET = somethingrandom123
PAYPAL_CLIENT_ID =
CLOUDINARY_CLOUD_NAME =
CLOUDINARY_API_KEY =
CLOUDINARY_API_SECRET =
- React.js - Front-end web library
- Redux - Global app state management
- Node.js - JavaScript runtime engine
- Express.js - Back-end web framework
- MongoDB - Database
- Cloudinary - Cloud-based image hosting
- PayPal Developer API - Online payments system
- Heroku - Cloud application platform
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.