Yonsei F20 Database project. Received scholarship for this project.
In this era of big data, collecting high quality data is particularly important. This project is to create a data crowsourcing platform to meet those needs. The admin can create tasks to collect data by specifying schema and data type. The submitter can submit the csv file that matches to the schema given certain period of time. The rater can rate the quality of the submitted data and score submitter as well as the dataset.
- python 3.8 확인 후 requirements.txt 실행
#python version check
python -v
# download requirements.txt
pip install -r requirements.txt
- MariaDB로 Yonsei 라는 이름의 DB 생성
#mariaDB 가동
mysql -u root
#혹은,
sudo mysql -u root
#create Yonsei DB
CREATE DATABASE Yonsei;
- myusername, mypassword 의 user 를 생성
#User 생성 + 권한 부여
> CREATE USER myusername@localhost IDENTIFIED BY mypassword;
> GRANT ALL PRIVILEGES ON Yonsei.* TO myusername@localhost;
> FLUSH PRIVILEGES;
- migrate 후 서버 실행
python manage.py migrate
python manage.py runserver
models.py의 정보를 변경할 경우
python migrate.py makemigrations