JayDosunmu / raised-hands-public

https://drive.google.com/open?id=1qFseK3mGdbyn0WwKU8r88jDlvBxkakFC

Home Page:https://www.raisedhands.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raised-Hands

About

Raised-Hands is a platform that increases classroom engagement, and shortens the feedback loop for teachers and students knowing how the class is progressing.

How to Use

TBD


How to set up locally

This project has 2 main components: a web server, and a web client. Below, steps are given for setting them up on your own machine.


Dependencies:

  • Java 8 (JDK + JRE)
  • Node >= 12
  • Docker

Stand up the server and web-client together using Docker Compose

  1. First create a new build for the server. From a terminal cd into the raised-hands-server directory, and use Gradle to create a build:
    $ cd /path/to/raised-hands/raised-hands-server
    
    $ ./gradlew build
    
  2. Create a copy of .env.template named .env in the top-level raised-hands project directory, and fill in the appropriate values for the environment variables:
    $ cd /path/to/raised-hands
    
    $ cp .env.template .env
    
    $ vim .env
    # Database
    
    POSTGRES_USER=<provide your value>
    POSTGRES_PASSWORD=<provide your value>
    
    ... # other env variables
    
    
  3. docker-compose can be used to stand up both the server and web-client by executing the following from the top-level raised-hands project directory:
    $ cd /path/to/raised-hands
    
    $ docker-compose up --build -t
    
  4. Communicate with the server from localhost:8080
  5. Attach a remote debugger to the server from localhost:5005
  6. Access the web-client from localhost:3000

Raised-Hands server

Using Docker

  1. Create a build: from CLI in the raised-hands-server directory, execute:
    $ ./gradlew build 
    
  2. Containerize the build:
    $ docker build --build-arg JAR_FILE=build/libs/*.jar -t raised-hands/raised-hands-server .
    
  3. Run the containerized server:
    $ docker run -p 8080:8080 -t raised-hands/raised-hands-server
    
  4. You can now communicate with the server at localhost:8080

Using Gradle

  1. Create a build: from CLI in the raised-hands-server directory, execute:

    $ ./gradlew build 
    
  2. After the build is completed, from the same folder, execute:

    $ java -jar build/libs/raised-hands-server-{project version}.jar
    

    replace {project version} with the value found in build.gradle

  3. You can now communicate with the server at localhost:8080

Raised-Hands web client

  1. Install dependencies for web-client: from raised-hands-web-client directory, execute:
    $ npm i
    
  2. Run the client:
    $ npm start
    
  3. You can now view the web-client at localhost:3000

How to test

Raised-Hands server

From raised-hands-server directory, execute:

$ ./gradlew test

Raised-Hands web client

From raised-hands-web-client directory, execute:

$ npm test

How to deploy

Raised-Hands server

TODO

Raised-Hands web client

TODO

Team Members

  • Jenisha Adhikari
  • Taslim Dosunmu
  • Faizon Williams
  • Chengyong Zhao

About

https://drive.google.com/open?id=1qFseK3mGdbyn0WwKU8r88jDlvBxkakFC

https://www.raisedhands.io/


Languages

Language:Java 62.7%Language:JavaScript 28.7%Language:Shell 5.9%Language:HTML 1.3%Language:CSS 1.0%Language:Dockerfile 0.3%