Book4You
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.
Our Stack
Installation (for development)
Client side:
- Run
npm install -g angular-cli
to install angular-cli. - Run
npm install
to install dependencies. - Run
ng serve
to fire up dev server. - Open browser at http://localhost:4200.
Server side:
-
Install PostgreSQL (you can use this tutorial)
-
Create the database, and grunt the
postgres
user 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).
Tests
Client side:
- Run
ng test --no-watch
. - Run
ng e2e
.
Server side:
- Not yet..
License
ISC