Skip to content

Latest commit

 

History

History
60 lines (49 loc) · 3.89 KB

README.md

File metadata and controls

60 lines (49 loc) · 3.89 KB

Getting Started with Create React App (IN PROGRESS)

Open Source? Yes! Ask Me Anything !

Technology and tools used

Youtube noce js npm react javascript python django django

Project setup

Clone this peoject

React Project Setup

  1. open Command prompt or terminal in frontend folder where pacjage.json file is located and write command npm install or yarn install

  2. To run the project run command npm start or yarn start

  3. 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
    • 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 with Your PAYPAL CLIENT ID HERE and do not remove "=" sign.

    client id of paypal

Django Project setup

  1. Install virtualenv by command pip install virtualenv
  2. Open terminal where frontend and backend folder located and type command virtualenv venv
  3. 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
  4. Package you need to install
    • pip install -r requirement.txt
  5. After installing packages and activating virtual environment cd in backend folder and run command python manage.py migrate
  6. And to run the project run command python manage.py runserver