Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 1.25 KB

ReadMe.md

File metadata and controls

43 lines (36 loc) · 1.25 KB

Project Layout: The project is made up of three django apps: authorization, trucker, and shipper.

authorization contains everything related to the registering and logging in and out of users.

trucker contains everything that has to do with the trucker side

shipper contains everything that has to do with the shipper side

How to clone and run:

  1. pull from github

  2. create .env file in src directory

    • add SECRET_KEY=[insert secret key here]
    • add DEBUG=on
  3. Create and activate virtual environment

    • go into project directory
    • to create:
      • Mac: 'python3 -m venv venv'
      • Windows: 'py -m venv venv'
    • to activate:
      • Mac: 'source venv/bin/activate'
      • Windows: '.\venv\Scripts\activate'
    • download packages:
      • pip install -r requirements.txt
      • note on Mac: may get an error trying to install mysqlclient. If this error persists, delete the line in requirements.txt that says 'mysqlclient==1.4.6'
  4. Run Server

    • move into 'src' folder
    • type into command line:
      • Mac: 'python manage.py runserver'
      • Windows: 'py manage.py runserver'
    • copy and paste http address returned from command line into browser

Now that the local server is up and running, these are the current working urls:

/accounts/login /register /shipper /trucker