Web Applications Course Project
These instructions will install the development environment into your local machine
-
Clone the repository or download source code:
$ git clone https://github.com/juanmbellini/PowerUp.git
or
$ wget https://github.com/juanmbellini/PowerUp/archive/master.zip
-
Install Ruby (used to build the front end)
$ brew install ruby
$ sudo apt-get install ruby
-
Install Sass gem
$ gem install sass
-
Install Compass gem
$ gem install compass
-
Install Maven
$ brew install maven
$ sudo apt-get install maven
-
Create a
passwords.properties
file under<PROJECT-ROOT>/paw-webapp/webapp/src/main/resources/config
with the following information:jwt.secret=<jwt-hash-key> email.password=<email-password> db.password=<database-password> twitch.clientId=<Twitch-Client-ID>
-
(Optional) Install PostgreSQL
$ brew install postgresql
$ sudo apt-get install postgresql
-
(Optional) Create a Postgres User
$ createuser -d -W <database-username>
-
(Optional) Create a Postgres Database
$ createdb -O <database-username> -U <database-creation-permission-username> <database-name>
-
Add (or change) the following properties in
common.properties
file under<PROJECT-ROOT>/paw-webapp/webapp/src/main/resources/config
with the following information:db.host=<database-hostname> # Should be "localhost" for local database db.port=<database-listening-port> # Should be 5432 if using Postgresql default settings db.username=<database-username> # Should match the username chosen in step 8 for local database db.name=<database-name> # Should match the name chosen in step 9 for local database
-
Change working directory to
<PROJECT-ROOT>/paw-webapp
$ cd <PROJECT-ROOT>/paw-webapp
-
Install project modules
$ mvn install
-
Resolve dependencies
$ mvn dependency:resolve
-
Build
war
file$ mvn clean package
This file will be located under
<PROJECT-ROOT>/paw-webapp/webapp/target
.
The application can be used without being authenticated, but the actions that can be performed are limited. For example, you can search for games, but you won't be able to write a review.
In order to get full access to the application features, you must be registered, and logged in.
For testing purposes, there is dummy account registered in the system. The credentials for this account are:
- Username: paw
- Password: paw