Equal Contributors: Ruihan Xu rhxu17@uwcchina.org Tianyi Lu skylty01@gmail.com Yufeng Wu yfwu02@gmail.com
- Python 3.6.x (3.7.x is not supported)
- If you haven't installed anaconda on your computer, here is the URL link to Download Anaconda
- Virtualenv
- Mac OS or Linux
$ sudo apt-get install python3-venv
- Click the top-right
Fork
button and fork my repo to your own repo - Clone your repo to your local computer
$ git clone https://github.com/<your_username>/Islandr.git
$ cd Islandr
- Create Virtualenv
$ python3 -m venv venv
- Add FLASK_APP to your activate shell file
$ vim venv/bin/activate
Add this line at the buttom of activate file
export FLASK_APP=flasky.py
Save and exit the file by pressing `Contrl+C` and `:wq`
- Activate Virtualevn and install dependencies
(venv)$ source venv/bin/activate
(venv)$ pip install -r requirements.txt
- Generate your database
(venv)$ flask db init
(venv)$ flask db migrate -m "first migration"
(venv)$ flask db upgrade
- Create index for search function
(venv)$ flask deploy
- Run your flask app
(venv)$ flask run
- Go to http://127.0.0.1:5000/ and see the app running
2019.07.08
TODO
- Email template (working)
- About Us page
- Tag system (working)
- Team Organization
- Tingting Communication
ERROR
- Mobile Display Error
- Unread Message Error
(venv)$ flask test
Expecting Output
test_app_exists (test_basics.BasicsTestCase) ... ok
test_app_is_testing (test_basics.BasicsTestCase) ... ok
test_no_password_getter (test_user_model.UserModelTestCase) ... ok
test_password_salts_are_random (test_user_model.UserModelTestCase) ... ok
test_password_setter (test_user_model.UserModelTestCase) ... ok
test_password_verification (test_user_model.UserModelTestCase) ... ok
test_user_role (test_user_model.UserModelTestCase) ... ok
-----------------------------------------------------------------
Ran 7 tests in 0.244s
OK
(venv)$ flask shell
>>> from app import faker
>>> faker.test_user()
>>> faker.users()
>>> faker.groups()
>>> faker.posts()
An admin account with email skylty01@gmail.com
and password 123
will be added into your database for testing
100 users ,groups and posts will be added into your database
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Starting from Step 4