Java API RESTfull for Log managing. It allows you to upload log batch files, list and search for Log entries, and edit log entries.
- Decide Framework: Spring
- Decide Database: Postegres
- Decide Front: Angular
- Bring VSCode environment up
- Bring Database up with docker
- API RESTFull Spring Boot
- Handle Upload File
- Import uploaded data
- Frontend Authentication (Login)
- Frontend CRUD for file upload
- Add service logs for debugging propouses
- Solve CORS problems (at front only)
- Frontend CRUD for log management
- Backend validations
- Frontend validations
- Unit tests
- Test coverage
- Terraform for CD/CI pipeline
- Add list pagination
- Add backend token authentication
Visual Studio Code with Maven as packager manager
Reference: https://www.youtube.com/watch?v=dkmlOi_MNb4
Method: GET
http://localhost:8080/api/list
Method: GET
http://localhost:8080/api/get/1
Method: POST
http://localhost:8080/api/add
{
"entryDate": "2020-01-01",
"ipAddress": "192.168.234.82",
"httpMethod": "GET / HTTP/1.1",
"returnCode": 200,
"browserDetail": "swcd (unknown version) CFNetwork/808.2.16 Darwin/15.6.0"
}
Method: PUT
http://localhost:8080/api/edit
{
"id":1,
"entryDate": "2020-01-01",
"ipAddress": "192.168.234.82",
"httpMethod": "GET / HTTP/1.1",
"returnCode": 200,
"browserDetail": "swcd (unknown version) CFNetwork/808.2.16 Darwin/15.6.0"
}
$ docker-machine start
$ docker run --rm --name go-postgres -p 5432:5432 -e POSTGRES_PASSWORD=postgres postgres:latest
$ docker-machine env