This project provides the basic functionality that can be customized by subclassing and using pre-built classes
- CRUD data through RESTful
- Read, write multiple file as json api
- Other: email, jwt, customize-display, etc...
- Send email, management random code same as cookies (key:value, age).
- Authentication and decentralization between client and server through json web token (jwt).
- Statistic account with Chart JS (regTime, quantity, relationships...).
- Customize display on web-app (navbar > setting)
- ACCESS data: AWAIT, LOCK (soft-delete), PRIVATE, PROTECTED, PUBLIC
- Connect to the rdbms (SQL Server) and CRUD through jdbc.
- RDBMS (Sql Server 2014+)
- Java (v17+), Spring-boot(v3.0.x)
- Javascript (ES6)
- Frameworks: AngularJS(v1.8), Bootstrap(v5.1)
- Libraries: AngularJS(router, cookies), ChartJS(v4.3.2)
- FRONTEND: HTML5 - CSS3
- font-awesome-v6.4.0
- bootstrap-v5.1.3
| USERNAME | PASSWORD | ROLES | IS ACTIVE |
|---|---|---|---|
| admin | 123 | ADMIN, STAFF, USER | ✔ |
| staff | 123 | STAFF | ✔ |
| user1 | 123 | USER | ✔ |
| user2 | 123 | default:[USER] | ❌ |
| partner | 123 | PARTNER | ✔ |
- File scripts create database: open mssql_base_super.sql
- File scripts insert database: open mssql_data_super.sql
- Requirements
- SQL Server 2014 or later
sqlcmd -? - JDK 17 or later
java -version - Maven 3.x.x
mvn -v - If you use Git
git -v
- SQL Server 2014 or later
- Guide
git clone https://github.com/studev1922/courage.gitor download courage-main.zip and extract file- Point to the project
cd [...path to the project]/courage - Execute database
- Create database
sqlcmd -f 65001 -i assets/mssql_base_super.sql - Insert database
sqlcmd -f 65001 -i assets/mssql_data_super.sql
- Create database
- Start server with maven
mvn clean spring-boot:run -X - Start courage/client/index.html with Live Server or copy all files in courage/client and paste to courage/src/main/resources/static :
robocopy client src/main/resources/static /eor courage/src/main/webapp :robocopy client src/main/webapp /e - Open client and server
- Open link With Live Server http://127.0.0.1:5500/client/index.html
- Open link With static or webapp http://localhost:8080/index.html
- localhost
http://127.0.0.1:5500orhttp://localhost:5500http://localhost:8080orhttp://127.0.0.1:8080- path /server or /client or /index.html
-
execute two files in mssql(SQL Server)
-
- Java:
java -version - Maven:
mvn -v
- Java:
-
- Main java: Application.java
- Maven run:
mvn clean spring-boot:run
-
- mvn:
http://localhost:8080/index - mvn:
http://localhost:8080/server - run as Live Server or any...
http://127.0.0.1:5500/client/index.html
- mvn:

