student-hub

所属分类:论文
开发工具:Python
文件大小:142KB
下载次数:0
上传日期:2022-04-22 22:58:59
上 传 者sh-1993
说明:  面向学生的学术、社交、游戏和其他应用程序中心
(A student-oriented hub for academic, social, gaming, and other apps)

文件列表:
.travis.yml (862, 2020-01-26)
LICENSE (1526, 2020-01-26)
docs (0, 2020-01-26)
docs\academics (0, 2020-01-26)
docs\academics\flashcard (0, 2020-01-26)
docs\academics\flashcard\flashcard_rel_schema.pdf (21081, 2020-01-26)
docs\academics\flashcard\flashcard_usecase.pdf (18476, 2020-01-26)
docs\games (0, 2020-01-26)
docs\games\trivia (0, 2020-01-26)
docs\games\trivia\games-trivia-schema.pdf (19416, 2020-01-26)
docs\games\trivia\license.txt (15749, 2020-01-26)
docs\users (0, 2020-01-26)
docs\users\custom-user.pdf (26163, 2020-01-26)
requirements.txt (73, 2020-01-26)
studenthub (0, 2020-01-26)
studenthub\__init__.py (0, 2020-01-26)
studenthub\academics (0, 2020-01-26)
studenthub\academics\__init__.py (0, 2020-01-26)
studenthub\academics\flashcard (0, 2020-01-26)
studenthub\academics\flashcard\__init__.py (0, 2020-01-26)
studenthub\academics\flashcard\admin.py (340, 2020-01-26)
studenthub\academics\flashcard\apps.py (112, 2020-01-26)
studenthub\academics\flashcard\manage.py (790, 2020-01-26)
studenthub\academics\flashcard\migrations (0, 2020-01-26)
studenthub\academics\flashcard\migrations\0001_initial.py (3644, 2020-01-26)
studenthub\academics\flashcard\migrations\0002_auto_20191223_1821.py (430, 2020-01-26)
studenthub\academics\flashcard\migrations\0003_auto_20200102_0534.py (447, 2020-01-26)
studenthub\academics\flashcard\migrations\0004_auto_20200102_0647.py (345, 2020-01-26)
studenthub\academics\flashcard\migrations\__init__.py (0, 2020-01-26)
studenthub\academics\flashcard\models.py (3654, 2020-01-26)
studenthub\academics\flashcard\static (0, 2020-01-26)
studenthub\academics\flashcard\static\flashcard (0, 2020-01-26)
studenthub\academics\flashcard\static\flashcard\select.js (3364, 2020-01-26)
studenthub\academics\flashcard\templates (0, 2020-01-26)
studenthub\academics\flashcard\templates\flashcard (0, 2020-01-26)
... ...

[![Travis build status](https://travis-ci.com/dswelbor/student-hub.svg?branch=master)](https://travis-ci.com/dswelbor/student-hub) # StudentHub A student-oriented hub for providing and integrating various academic, social, gaming, and other apps # Installation Below are instructions to install necessary services and requirements for this project. ## Install PostgreSQL PostgreSQL is the recommended Relation Database Management System for storing studenthub data. While other RDMS will likely work, additional configuration/modification might be required 1) Install postgresql on your development environment.
2) Configure postgresql with appropriate settings. 3) Create username and password for database access.
4) Create the database django will use ie `studenthub`
5) Update settings.json to reflect db settings (more on that later) Alternatively, you can use a remote RDMS (ideally PostgreSQL) if one is available to you. Simply update settings.json as appropriate for database access ## Install python (if necessary) First, install python `sudo apt-get python3` ## Install pip https://pip.pypa.io/en/stable/installing/ ## Install virtualenv https://virtualenv.pypa.io/en/latest/installation/
Alternatively you can use virtualenvwrapper for simpler cli commands ## Clone repository From CLI, run the command:
`git clone https://github.com/dswelbor/student-hub.git` ## Create virtualenv From CLI, run the command:
`virtualenv -p python3 env/student-hub`
Note: env should not be in version control, so generally not in same sub directory as the local git repo. ## Activate virtualenv From CLI, run the command:
`source env/student-hub/bin/activate`
This activates the virtual environment. To later deactivate virtualenv, type: `deactivate` ## Install environment requirements From the virtualenv, navigate to the git repository root folder and run:
`pip install -r requirements.txt` ## Settings Settings are read from `~/studenthub/config/settings.json`
Copy contents from `settings_sample.json` to a a new file `settings.json` and modify as appropriate. Reach out to fellow contributors as needed for settings. ## Migrations Apply migrations: `python manage.py migrate`
This applies existing "migrations" from VCS to your database, and defines the schema (types/structure/constraints) for the data in the database ## Take care committing migrations! Migrations should made by the developer updating one model at a time. The developer should then run `python manage.py makemigrations ` when committing changes to the repository.

The following link discusses the issues with conflicts in migrations in vcs.
https://stackoverflow.com/questions/28035119/should-i-be-adding-the-django-migration-files-in-the-gitignore-file # Games ## Trivia game Trivia should be initialized with data using the populate_trivia script.
`python manage.py populate_trivia`

近期下载者

相关文件


收藏者