Skip to content

Commit

Permalink
Add yarn run devsetup command (#925)
Browse files Browse the repository at this point in the history
* add new yarn command to set up dev environment

* change commands to remove redundant pieces to prioritize yarn run devsetup

Streamlines the new dev experience
  • Loading branch information
aronasorman authored and kollivier committed Aug 30, 2018
1 parent 7e79cc3 commit da6a73a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
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

0 comments on commit da6a73a

Please sign in to comment.