-
open Command prompt or terminal in frontend folder where
pacjage.json
file is located and write commandnpm install
oryarn install
-
To run the project run command
npm start
oryarn start
-
To setup PayPal Payment
- Create your developer account on http://developer.paypal.com/
- Login on dashboard
- In Dashboard go in SENDBOX SECTION and there you will see option
Accounts
and in accouunt you need to create 2 accounts- Personal
- click on create account and in that go to Create custom account
- There select your region (According to your coiuntry)
- Account type should be Personal, Give your email id (FAKE ID ALLOWED FOR DEVELOPMENT AND TESTING)
- In PAYPAL Balance enter your ammount(This will not be real money for developing and testing)
- Select payment card should be Discover
- Cradit Card should be Visa
- Business
- click on create account and in that go to Create custom account
- There select your region (According to your coiuntry)
- Account type should be Business, Give your email id (FAKE ID ALLOWED FOR DEVELOPMENT AND TESTING)
- In PAYPAL Balance enter your ammount(This will not be real money for developing and testing)
- Select payment card should be Discover
- Cradit Card should be Visa
- Personal
- In Dashboard go in My Apps and Credentials and click on create app and there type should be Merchant and give your business mail id you can select from dropdown (It will show business mail id automatically if you have followed above steps)
- After Creating app you will see you will see Client Id that you need to copy and paste in
./frontend/src/screens/OrderScreen.js
. Replace that id withYour PAYPAL CLIENT ID HERE
and do not remove "=" sign.
- Install virtualenv by command
pip install virtualenv
- Open terminal where frontend and backend folder located and type command
virtualenv venv
- After creating virtial environment we need to activate it
- In windows command is
venv\Script\activate
- In linux based operating system and mac command is
source venv/scripts/activate
- In windows command is
- Package you need to install
pip install -r requirement.txt
- After installing packages and activating virtual environment cd in backend folder and run command
python manage.py migrate
- And to run the project run command
python manage.py runserver