Webapp is located in the webapp directory. You will need a ds.properties (or what ever you want to name it) for the application to connect to Postgresql. The format for the file is given by sample.ds.properties.
- Tomcat 7+
- Java 7+
- Postgresql 9.3+
- Maven 3+
For WebApp:
mvn clean packageTo create the database schema using maven, issue the following command:
mvn clean package -Ddb=createFor WebApp:
cp target/cse480.war $TOMCAT_HOME/webappsThese instructions are assuming you are using Linux
- Install postgresql with your package manager
sudo su - postgresto switch as the postgres userpsqlto run the postgres clientcreate user cse480 with password 'cse480';to create the database usercreate database cse480 owner cse480;to create the database<ctrl+d>to exit out of psql and thenexitas the postgres user- To create the schema developed run the following command
mvn clean package -Ddb=create
In your properties file, the following need to be added:
twilio.account_sid=
twilio.auth_token=
twilio.phone_number=
The values for these properties are a secret and SHOULD NOT be in the repo.