go-exercises-backend, v1.0-alpha.1
Posted on

Back-end of the service for solving programming exercises.
Second alpha of the major version. Implement the solution model.
Change Log
- RESTful API:
- models:
- solution model:
- storing:
- task ID;
- code;
- operations:
- getting all solutions by a task ID;
- getting a single solution by an ID;
- creating.
- storing:
- solution model:
- models:
Features
- RESTful API:
- models:
- task model:
- storing:
- title;
- description;
- boilerplate code;
- test cases:
- all test cases are represented by a single string;
- operations:
- getting all tasks;
- getting a single task by an ID;
- creating;
- updating by an ID;
- deleting by an ID;
- storing:
- solution model:
- storing:
- task ID;
- code;
- operations:
- getting all solutions by a task ID;
- getting a single solution by an ID;
- creating;
- storing:
- task model:
- representing:
- in a JSON:
- payloads:
- of requests;
- of responses;
- payloads:
- as a plain text:
- errors;
- in a JSON:
- models:
- server:
- storing settings in environment variables;
- supporting graceful shutdown;
- logging:
- logging requests;
- logging errors;
- panics:
- recovering on panics;
- logging of panics;
- databases:
- storing data in the PostgreSQL database;
- distributing:
- Docker image;
- Docker Compose configuration.
Repository
Link: https://github.com/thewizardplusplus/go-exercises-backend/tree/v1.0-alpha.1.
Content: code.
License: MIT.
Screenshots
POST /api/v1/tasks/{taskID}/solutions/ route in the Postman tool

GET /api/v1/solutions/{id} route in the Postman tool
