An online book store written in Java (Spring) & Angular2 (RESTful).
Java TypeScript HTML CSS JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
client
server
.gitignore
.travis.yml
LICENSE
README.md

README.md

Book4You

license Build Status

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:

  1. Run npm install -g angular-cli to install angular-cli.
  2. Run npm install to install dependencies.
  3. Run ng serve to fire up dev server.
  4. Open browser at http://localhost:4200.

Server side:

  1. Install PostgreSQL (you can use this tutorial)

  2. 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.

  1. Install the project
mvn clean install
  1. 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