-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from layuplist/develop
LL for 2020
- Loading branch information
Showing
14 changed files
with
50 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Python: Django", | ||
"type": "python", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/manage.py", | ||
"args": [ | ||
"collectstatic" | ||
], | ||
"django": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"python.pythonPath": "/Users/zirayhao/Code/dplanner/ll/venv/bin/python2.7" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,14 +9,15 @@ Feel free to email <a href="mailto:[email protected]">[email protected]< | |
Local Setup (macOS or OS X) | ||
----------------- | ||
#### Installation | ||
* Use Python 2.7.16 | ||
* Install [Homebrew](http://brew.sh/), [node.js](https://nodejs.org/en/), and Postgres (we recommend [Postgres.app](http://postgresapp.com/) with their [CLI Tools](http://postgresapp.com/documentation/cli-tools.html)). | ||
* Install the [Heroku CLI](https://cli.heroku.com). You don't need a Heroku account, they just offer good tools for configuration. | ||
* Install Redis using `brew install redis`. | ||
* We use yuglify to compress the static files. Install using `sudo npm install -g yuglify`. | ||
* Install forego using `brew install forego`. This is used to run the server. | ||
* Run `easy_install pip` if you do not have pip. | ||
* Run `pip install virtualenv` if you do not have virtualenv. | ||
* Run `virtualenv venv --no-site-packages` to create a Python virtual environment. | ||
* Run `virtualenv venv` to create a Python virtual environment. | ||
* Run `createdb layuplist`. | ||
* [Clone](https://help.github.com/articles/cloning-a-repository/) the main repository. `git clone https://github.com/layuplist/layup-list.git`. | ||
* Create a `.env` file in the root directory of the repository (fill out the items in brackets): | ||
|
@@ -26,12 +27,14 @@ Local Setup (macOS or OS X) | |
REDIS_URL=redis://[YOUR_USERNAME]@localhost:6379 | ||
SECRET_KEY=[SOME_LONG_RANDOM_STRING] | ||
DEBUG=True | ||
CURRENT_TERM=16S | ||
CURRENT_TERM=20X | ||
OFFERINGS_THRESHOLD_FOR_TERM_UPDATE=100 | ||
``` | ||
|
||
* Run `source ./scripts/dev/environment.sh` to set up the heroku development environment. | ||
* Run `source ./scripts/dev/virtualize.sh` to activate the virtual environment. | ||
* Install Python dependencies using `pip install -r requirements.txt`. | ||
* Initialize the database with `python manage.py migrate`. | ||
|
||
Developing | ||
---------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
python-2.7.16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
. ~/.bashrc | ||
export PS1="(ll) $PS1" | ||
. ~/.zshrc | ||
export PS1="(layup-list) $PS1" | ||
source venv/bin/activate |