Hosted on VPS here: Link
- Ruby 3.3.2
- Rails 7.1.3
Needed to change model name from Class to Group to avoid collisions (Class is a reserved keyword).
Requires student object, returns a created student as JSON, also X-Auth-Token in headers (JWT token).
Requires X-Auth-Token from the last request, deletes a student.
Shows all students from a group in school.
Shows all groups in school.
You need .env.local file for development env and .env.test.local for test env.
Example:
DATABASE_URL=postgresql://postgres:password@postgres:5432/internship_api_development
JWT_ISSUER=<your-issuer>
JWT_SECRET=<your-secret>
To run the app:
docker compose up