Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add yarn run devsetup command #925

Merged
merged 3 commits into from
Aug 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,24 +222,18 @@ All the javascript dependencies are listed in `package.json`. To install them ru

CREATE DATABASE "gonano" WITH TEMPLATE = template0 OWNER = "learningequality";

5. Make sure the Redis server is running (used for job queue)

service redis-server start
# mac: redis-server /usr/local/etc/redis.conf

6. Start the minio server

MINIO_ACCESS_KEY=development MINIO_SECRET_KEY=development minio server ~/.minio_data



##### Run all database migrations and load constants

You'll only need to run these commands once, to setup the necessary tables and
constants in the database:

make migrate collectstatic
cd contentcuration; python manage.py setup --settings=contentcuration.dev_settings; cd ..
# On one terminal, run all external services
$ yarn run services

# On another terminal, run devsetup to create all the necessary tables and buckets
$ yarn run devsetup

##### Start the dev server

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"pytest:reusedb": "cd contentcuration; pytest --reuse-db",
"postgres": "service postgresql start || pg_ctl -D /usr/local/var/[email protected] start || true",
"redis": "service redis-server start || redis-server /usr/local/etc/redis.conf || true",
"devsetup": "cd contentcuration && python manage.py setup --settings=contentcuration.dev_settings",
"services": "npm-run-all -c --parallel --silent minio redis postgres",
"unittests": "yarn run build && yarn run pytest",
"unittests:reusedb": "npm-run-all --parallel --race services pytest:reusedb",
Expand Down