Learn programming by thinking.
To run the web app:
./scripts/runWebApp.sh
To run the desktop app:
./scripts/runDesktopApp.sh
You need to have a PostgreSQL database.
brew install postgresql
brew services start postgresql@14
psql -U postgres -c "CREATE DATABASE ivy_learn;"
psql -d ivy_learn -c "CREATE USER postgres WITH PASSWORD 'password';"
psql -d ivy_learn -c "ALTER USER postgres WITH SUPERUSER;"
Environment Variables
export IVY_LEARN_DB_HOST="localhost"
export IVY_LEARN_DB_DATABASE="ivy_learn"
export IVY_LEARN_DB_USER="postgres"
export IVY_LEARN_DB_PORT="5432"
export IVY_LEARN_DB_PASSWORD="password"
export IVY_LEARN_GITHUB_PAT="your_github_personal_access_token"
export IVY_GOOGLE_OAUTH_CLIENT_ID="your-client-id"
export IVY_GOOGLE_OAUTH_CLIENT_SECRET="your-client-secret"
To run the sever:
./scripts/runServer.sh
(optional) Drop local database:
psql -U postgres -c "DROP DATABASE ivy_learn;"
psql -U postgres -c "CREATE DATABASE ivy_learn;"
Connect to local database:
psql -U postgres -d ivy_learn
Connect to DB
heroku pg:psql --app your-app
Logs
heroku logs --app your-app --tail