Skip to content

ChanunyaO/KU-Lend

Repository files navigation

KU-Lend Build Status codecov

KU Lend is a website that allows staff and students who want to borrow a device that they need to use for education from Kasetsart University. This website would reduce the process of borrowing and the staff can prepare the device before the borrowing date.

Website

https://kulend.herokuapp.com/

Project Documents

Iteration Plan

Other Project Documents

Installation

1. Clone Project

git clone https://github.com/ChanunyaO/KU-Lend.git

2. Install the required module

Upgrade pip to the lastest version

python -m pip install --upgrade pip

Install python module

pip install -r requirements.txt

3. Update .env file

Create a new file .env and copy the content of .env.template. Add django Secret key and Email Password to your .env file.

4. Migrate the installed app

python manage.py makemigrations
python manage.py migrate

5. Load Data

Load site data

python manage.py loaddata ku_lend/fixtures/site.json

Load user data for login via admin if you not setting OAuth login

python manage.py loaddata ku_lend/fixtures/users.json

Load item data

python manage.py loaddata ku_lend/fixtures/item.json

6. Running the Web Application

python manage.py runserver

Your app should now be running on https://127.0.0.1:8000/

Additional Information

Easy Login as Admin

You should login as admin before using web application at https://127.0.0.1:8000/admin or click staff button at index page.

Username Password
admin 123

Login as User

For login as user, you should using Google service for enable oauth login.