Functional Requirement: https://docs.google.com/document/d/1mvd4GWxeuMcXh76O5w_zZTu5kzWF9tG8SQJxNhWPnK8/edit?usp=sharing
Blogger is splited into two part
- Frontend (Angular): https://github.com/havinhphu188/blogger-client
- Backend (Spring Boot): https://github.com/havinhphu188/blogger-demo-backend
Live demo (Deployed in heroku): https://simple-blogger-3000.herokuapp.com/
- Java 11
- nodejs v15
- run
npm install
- After all package is installed, run
ng serve
- Frontend is now served in http://localhost:4200/
- Project is using postgres as relational database
- script:
- Schema: src\main\resources\schema.sql
- Data for integration test: src\test\resources\data-for-testing.sql
- username/password: By default, project is configured with username, password as below. Modification may be necessary to adapt local database.
- username: postgres
- password: asd123
- Create 2 database with name below:
- blogger-demo: import script
schema.sql
- blogger-integration-test: import
schema.sql
,data-for-testing.sql
, respectively.
- blogger-demo: import script
- run
mvnw spring-boot:run
. Backend API is now served at http://localhost:8080/
- run
mvnw test
- IntelliJ IDEA or Eclipse with @Lombok plugin. https://projectlombok.org/setup/intellij
blogger-api-document.json
(import into Postman to test API)