Ebook website - web development course final assignment @ sophomore B.
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.
-
Clone the project(needless to say)
-
Build the frontend
cd ebook-web-project/frontend yarn install yarn buildAll built frontend file will be gracefully handled and put into
src/main/resources/staticdirectory, so that Tomcat can serve them as static contents. -
Initialize the database and database user
You have to create your database in your local DBMS first. The project uses
MySQLby default. To see & modify its configurations(database name & user config), check outsrc/resources/application.properties. -
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/InitialDataLoaderif 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
spiderdirectory. Try to run it, or seed the database by yourself. -
Run the application
- Open the project in IntellIJ IDEA Ultimate
- Run the spring application
- Visit
http://localhost:8080
