Sign inSign up

tcarrio/panicd

By tcarrio

Updated over 8 years ago

Don't Panic Educational Suite server

Image
0

1.6K

tcarrio/panicd repository overview

Don't Panic Educational Suite is an application that changes the communication dynamic in the classroom.

This service allows for students, teachers, and teacher assistants to communicate student troubles and questions in an efficient manner to enable responsive lectures.

Features of this service include

  • students able to flag their confusion
  • students can ask questions to a public board
  • students can be safe in their anonymity from other students
  • students can agree with other questions
  • teachers receive notifications of students statuses
  • TAs can directly respond to questions posted by students
  • students may rescind their confusion as it is addressed by the teachers/TAs
  • applications available on web and Android

This project is a work-in-progress and features are introduced incrementally.

The server can be hosted by pulling this image, running the official MongoDB docker, and linking it to it. The tags given are based on branches that exist in the GitHub repository. Use master for the latest version.

docker pull mongo
docker run --name mongo -v /host/persistentDB:/data/db -d mongo
docker run --name panicd -p 80:3000 --link=mongo:mongodb -d tcarrio/panicd

Overriding environment variables for the MongoDB connection string can be passed in the docker run command, if you would prefer:

docker run -d
    --name panicd
    -e "MONGODB_USER=username"
    -e "MONGODB_PASS=password"
    -e "MONGODB_PORT_27017_TCP_ADDR=address"
    -e "MONGODB_PORT_27017_TCP_PORT=port"
    -e "MONGODB_AUTH_SRC=authSrc"
    -p 80:3000
    tcarrio/panicd:master

Both these solutions should work and provide a method of attaching existing MongoDB instance or the official MongoDB container.

Update: This Docker image now contains the functionality for seeding the connected MongoDB. If the panic-button database exists, this will drop the database and fill with test data. This functionality will automatically determine the Mongo connection URI based on the same environment variables above, so linking with the mongo container will automatically detect the connection target. The seed process can be spawned by using npm run seed from the Docker container. Environment variables can be added to target a separate instance of the panicd server, PANIC_HOST and PANIC_PORT.

An example of running this Docker container to seed a database:

docker run -d
    --name panicd
    -e "PANIC_HOST=127.0.0.1"
    -e "PANIC_PORT=80"
    tcarrio/panicd:master
    npm run seed

Tag summary

Content type

Image

Digest

Size

44.9 MB

Last updated

over 8 years ago

docker pull tcarrio/panicd:compose