Skip to content

A student-teacher workload manager, created for Commonwealth School

Notifications You must be signed in to change notification settings

calebsander/rjjenda

Repository files navigation

rjjenda

Initializing database

$ psql postgres

postgres=# CREATE DATABASE rjjenda;
postgres=# CREATE ROLE rjjenda WITH LOGIN;
postgres=# GRANT ALL ON DATABASE "rjjenda" TO rjjenda;
postgres=# \q

Initial setup commands

npm run compile
init-scripts/sync-database.js
init-scripts/import-students-teachers.js csvFile #provide path to users CSV file
init-scripts/set-admin.js username #provide username of initial admin

Everything else is easier to accomplish through the admin interface.

Compiling the server-side TypeScript and starting the server

npm start

Building the client-side bundle

npm run build

Using HTTPS

To enable HTTPS, you first need an SSL certificate. The certificate will include a private key file (named something like key.pem) and a certificate file (something like cert.pem). Update settings.json with the paths to these files:

{
	"emailDomain": "...",
	"https": {
		"keyFile": "key.pem",
		"certFile": "cert.pem"
	},
	"hostDomain": "...",
	"port": 443
}

You may also want to change the port that the server runs on; the default for HTTPS is 443.

To disable HTTPS, set "https": null.

About

A student-teacher workload manager, created for Commonwealth School

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published