Site ❤️: http://www.memcode.com/
Trello board: https://trello.com/b/UN0Vnv80/memcode (here you can see what we're working on, what features are to come, and what PRs are welcome)
- Write me at [email protected]
- Open the issue in this repo
You are very welcome to send a PR to this repository.
- Install PostgreSQL.
- Go to postgres console:
psql postgres
. - Create a
postgres
user with password: CREATE ROLE postgres WITH LOGIN PASSWORD 'your password here'. - Give them a permission to create dbs, own all extensions etc.:
ALTER ROLE postgres with superuser;
.
- Ask someone for
env.js
file, put it in the root folder (next to package.json). Inside ofenv.js
, change DB_USER and DB_PASSWORD to relevant values (your postgres's user and password).
- Install npm.
- Create a new development database 'memcode':
make db-reset
.
- Run
npm install
. make start
,make backend-webpack
,make frontend-webpack
- Install heroku cli.
heroku login
.- Make sure heroku knows about our app:
heroku git:remote -a memcode
. - Pull courses from the database with
make heroku-db-pull
.
- Create a new test database 'memcode_test':
make test-db-reset
.
- Run
npm install
. make test-backend
for backend, andmake test-frontend
. Both will be automatically compiling code in the runtime, so you don't need to bother with code compilers. Both run code in**/*/... .test.js
file inside of, respectively, backend and frontend folders.