- BACK-END page:
React
Java 1.8
Maven
MySql DB
Tomcat
- 1 . Clone - Fork - Download back-end (this)
- 2 . Clone - Fork - Download Front-end -
- 3 . Open Back-end Code in IDE fx. NetBeans -
- 4 . Setup Persistence.xml to local DB. (by default SolidCode)
(Pu -> Create, PuTest -> Drop and Create)
- 5 . Run both SetupUsers.java & DummyData.java to test Database - Persistence.xml configuration.
Note: test users have password stated in plain text ( SetupUsers.java)
- 6 . Run back-end using tomcat server
(Runs the app and opens a locally hosted server on: http://localhost:8080/SolidCode-BackEnd/ )
7 . Start front-end -> Front end Page and documentation:
API located at: xxx/api/xxx
fx.: //api/dummyAPI/getStatus
| Type | Path | Content | Status | Authentication |
|---|---|---|---|---|
| GET | /dummyAPI/getStatus | String | 200 | Open |
| Delete | /dummyAPI/delete | TO BE IMPLEMENTED | Open | |
| Update | /dummyAPI/update | TO BE IMPLEMENTED | Open | |
| GET | /dummyAPI/all | List / Array | 200 | Open |
| POST | /dummyAPI/add | String {"name": "name"} | 204 | Open |
| GET | /dummyAPI/5endPoints | List / Array | 200 | Open |
| GET | /info | String | 200 | Open |
| GET | /info/all | List / Array | 200 | Open |
| GET | /info/user | String | 200 | Role: User |
| GET | /info/admin | String | 200 | Role: admin |
| POST | /login/ | String: {"username": "name", "password": "passowrd"} | 200 | Open |
- Project Page: page