/angular-book-rental

Online book rental created in Angular

Primary LanguageTypeScript

Angular Book Rental

Web application serving as a catalog of books.

Available at: https://angular-book-rental.herokuapp.com/

Screenshot_2

Getting started

  1. Make sure that you have Node 12.14 or newer installed. See instructions here.

  2. Make sure that you have the Angular CLI installed globally. Check details here.

    npm install -g @angular/cli
    
  3. Make sure that you have installed dependencies ('node_modules' folder) in 'library-server' folder via command:

    npm install
    

How can you Host Angular App?

  • You need to be in client ("cd client" in new terminal) folder, then just type:

    ng serve
    

How can you Host Node JS Server?

  • You need to be in server ("cd server" in new terminal) folder, then just type:

    npm run start:server
    

Admin account

e-mail: admin
password: admin

If admin is blocked you can change permission in database by editing permission to 'admin' at Users table or add new user by database with email 'admin' and password 'admin'. Then you can configure new admin account by logging in on site

Screenshot_7

Useful tools to work with app

Details & Settings

Changing api url for production

Change apiUrl variable in file client/src/environments/environment.prod.ts

Heroku limits

Testing

Google Chrome version we are using - 90.0.4430.78

How to check chrome version:

  • Click on the Menu icon in the upper right corner of the screen.
  • Next click on Help, and then About Google Chrome.
  • Your Chrome browser version number can be found here.

Cypress startup guide

  • You need to be in cypress ("cd cypress in new terminal") folder, then just type:

    npx cypress open