Skip to content
This repository has been archived by the owner on Sep 13, 2019. It is now read-only.

Latest commit

 

History

History
41 lines (25 loc) · 1.78 KB

readme.md

File metadata and controls

41 lines (25 loc) · 1.78 KB

Ebook

logo

Build Status

Ebook website - web development course final assignment @ sophomore B.

Architecture

This project features a separated front & backend architecture, being composed of a Vue frontend and an API service built with powerful Spring framework.

The frontend would make RESTful API requests to the backend service with authorization token in JWT format, and the backend would return RESTful API responses with JSON objects as payload.

Installation & running

  1. Clone the project(needless to say)

  2. Build the frontend

    cd ebook-web-project/frontend
    yarn install
    yarn build
    

    All built frontend file will be gracefully handled and put into src/main/resources/static directory, so that Tomcat can serve them as static contents.

  3. Initialize the database and database user

    You have to create your database in your local DBMS first. The project uses MySQL by default. To see & modify its configurations(database name & user config), check out src/resources/application.properties.

  4. Seed the database(optional)

    The default admin user would be seeded by the backend application first time it is started. Check out src/main/java/com/eyek/ebook/config/InitialDataLoader if you want access to the default username and password. Apart from that, the database is empty and I haven't uploaded any sql dump file into this repo.

    A Douban Book Spider is implemented and placed in spider directory. Try to run it, or seed the database by yourself.

  5. Run the application

    • Open the project in IntellIJ IDEA Ultimate
    • Run the spring application
    • Visit http://localhost:8080