A catalog for reviewing, rating and finding books built with Nuxt.js.
- Password hashing (argon2)
- Login/Registration
- Single Page Application
- View, Review & Rate Books
- View distribution of book ratings
- View book reviews
- Search for books
- Create and Remove book interests
- View your book history
- Mark books as read
- View recommended, recently added and random books
- A functioning MySQL database (MariaDB - https://mariadb.com/downloads/) or use XAMPP (https://www.apachefriends.org/index.html) for hosting locally
- Yarn package manager (https://classic.yarnpkg.com/en/docs/getting-started)
# Clone repository
$ git clone https://github.com/FrazzIe/cswd_coursework.git
$ cd cswd_coursework
# Install dependencies
$ yarn install
- Create a file called
.env
- Paste the content below inside and enter your credentials
# Database credentails
MYSQL_HOST=localhost
MYSQL_USER=root
MYSQL_PASS=
MYSQL_DB=book_catalog
# Authentication secret
JWT_SECRET=secret
- Above are all the applications specific environment variables, you can set them yourself or let the application handle them in the
.env
file.
- Run the
schema.sql
script included in the repository in your database system
# build for production and launch server
$ yarn build
$ yarn start
Username | Password | Group |
---|---|---|
admin | Admin123@ | admin |
user1 | User123@ | user |
user2 | User123@ | user |
user3 | User123@ | user |
user4 | User123@ | user |
user5 | User123@ | user |
user6 | User123@ | user |
user7 | User123@ | user |
user8 | User123@ | user |
user9 | User123@ | user |
user10 | User123@ | user |