The following is the set of instructions to download and run the source code for Give It Forward:
To begin you can either download the source code from the links below or you can unzip the supplied file GIF.zip • https://github.com/GiveItForward/Server • https://github.com/GiveItForward/ClientWithBackbone
What you will need:
- Java Platform (JDK). Download: http://www.oracle.com/technetwork/java/javase/downloads/index.html
- Node.JS platform. Download: https://nodejs.org/en/download/
- The project
- https://github.com/GiveItForward/Server
- https://github.com/GiveItForward/ClientWithBackbone
- We have also included the project as GIF.zip to this submission.
- IntelliJ IDE. Download: https://www.jetbrains.com/idea/download
- Tomcat 8. Download: https://tomcat.apache.org/download-80.cgi
- The dependencies are handled via Maven. See the list of dependencies in Server/giveitforward/pom.xml and ClientWithBackbone/package.json
Setup Instructions (Server):
- Open IntelliJ
- Choose File -> Open
- In the dialog box, navigate to Server/giveitforward and choose open
- Choose File -> Project Structure and choose Artifacts from navigation bar on the left
- Add a new Web Application: Exploded artifact
- Name it giveitforward and choose your desired output directory
- Right click on the giveitforward folder listed under Available Elements and select Put Into Output Root
- Click Ok.
- Choose Run -> Edit Configurations
- Add a new tomcat server and choose local
- Configure the local tomcat server to point to your download version of tomcat 8 (point it at the root directory)
- Configure the server to point to your JRE (Java Runtime Environment)
- In the Before Launch window at the bottom, add the artifact you created in steps 4-8
- Click Ok
- The server portion of the project is now setup.
Setup Instructions (Client):
- Choose File -> Open
- In the dialog box, navigate to ClientWithBackbone/ and choose open, and then open in a new window.
- Install the Node.js plugin for IntelliJ
- Choose Run -> Edit Configurations
- Add a new Node.js server, name it what ever you want
- Give it your Node Interpreter location if it’s not already set. It should be something like /usr/local/opt/node@6/bin/node
- Add the following to Environment Variables:
NODE_ENV=development USER_ID= PASSWORD= SIGNATURE= GOOGLE_CLIENT_ID= SERVER_IP=
- Click ok
Run Instructions:
- Go to the IntelliJ window with the tomcat server and click play
- Go the the IntelliJ window with the node server and click play
- Your up and running!