The repo contains the server and client sides of the Book4You project. Book4You is a university project for #20503 - Workshop: Advanced Programming with Java course.
- Run
npm install -g angular-clito install angular-cli. - Run
npm installto install dependencies. - Run
ng serveto fire up dev server. - Open browser at http://localhost:4200.
-
Install PostgreSQL (you can use this tutorial)
-
Create the database, and grunt the
postgresuser access
psql postgres -c "CREATE DATABASE bookforyou"
psql postgres -c "ALTER USER postgres WITH PASSWORD 'postgres'"
The database name and user name will be in /server/src/main/resources/application.properties.
- Install the project
mvn clean install
- Run it
java -jar target/book4you-0.0.1-SNAPSHOT.jar
We take the target from the pom.xml file, and run it like: target/<artifactId>-<version>.jar.
Then go to http://localhost:8080 (the server default port can be changed in /server/src/main/resources/application.properties at server.port argument).
Client side:
- Run
ng test --no-watch. - Run
ng e2e.
Server side:
- Not yet..
ISC