Members
Just a simple learning management system for textbook-like sites, powering Real Python.
Getting Started
- Fork/Clone
- Install dependencies
- Rename .env-sample to .env and then update
- Create the development and test Postgres DBs:
createdb members
createdb members_test
- Run development migrations:
knex migrate:latest --env development
- Run seed:
knex seed:run --env development
- Run server
gulp
Commands
- Run dev server:
gulp
- Run tests:
gulp test
- Run tests with coverage:
gulp coverage
- Create build:
gulp build
Run
gulp help
to list all available commands
Notes
https://github.com/jbutko/ExpressJS-Socket.IO-AngularJS-Boilerplate
- Make sure to drop the database before running the seed!
- Updates (
development
andtesting
only):
- admin status:
curl -X PUT -d admin=true http://localhost:3000/users/<USERNAME>/admin
- active status:
curl -X PUT -d active=true http://localhost:3000/users/<USERNAME>/active
- Make sure to update the fixtures (/test/fixtures/data.js) whenever the DB schema is updated
- User auth flow -> unregistered -> unverified -> active