Giter Site home page Giter Site logo

processtutorial's Introduction

ProcessTutorial

SE3800 Final Project

Requirements

Redis (clone the git repository and 'nohup ////src/redis-server &') Postgres (version 9.3 was used for the project although earlier version will likely work) Java 7

Instructions (for Linux/Mac)

  • Clone this repository

  • Make sure redis is running

  • Make sure postgres is running (a schema named 'se3800' and a user named 'se3800' and password 'v738T4*2anoco82r3' is required)

  • Open terminal and navigate the to root of the project

  • Run './gradlew fatJar' which compiles the project into one big jar file

  • Run './gradlew migrate' which will setup your database tables

  • Run './gradlew testData' which will insert a base admin user with username 'admin' and password 'test123'

  • Run 'java -jar build/libs/ProcessTutorial.jar server ProcessTutorial.yml' to start running the project. This will run the project until you hit 'ctrl+c' to quit the project.

  • If you want to leave the project running and not worry about it until later run 'nohup java -jar build/libs/ProcessTutorial.jar server ProcessTutorial.yml &' which will disown the process and leave it running until the server shuts down.

  • If you choose to leave the project running in the background, you need to find out the process ID and kill it, do a 'sudo killall java' which may kill other processes, or do a POST to the server 'http://server.address:8080/shutdown' with a JSON body as follows

    { "password":"ptShutdown" }

Notes

  • The server runs on port 8080, so you can either modify you IP tables to forward all traffic on port 80 of your machine to port 8080 so it will reach the server, or just modify your base urls in the web project to go to port 8080, which is the default for the web frontend.
  • Most server configurations are in the ProcessTutorial.yml file. Open this in a text editor to see the port the server runs on, the database user and password, etc.
  • If you want to see if the server is running, you can do a get to the health check route, 'curl http://localhost:8080/healthcheck' and it should respond with a 'status OK'.

processtutorial's People

Contributors

jault3 avatar

Watchers

James Cloos avatar Ngezahayo Ishimwe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.