Backend Code of GatorShare, Software Engineering Spring 2022 project. Built by:
- Anuj Singh (Backend) {R3dI0}
- Dinesh Valasala (Frontend) {valasaladinesh}
- Ekleen Kaur (Backend) {eclairss17}
- Rishabh Tatiraju (Frontend) {tatirajurishabh}
Stack:
- Frontend: React.js
- Backend: GoLang
- Database: Postgres and sqlite
Sprint2 has functional testing and unit testing for the backend. Test cases for both postman and go have been included inside the scope of sprint2.
- Create CI/CD pipelines for devops.
- Migrate database to postgres from Sqlite
- Fix issue with foreign key dependency between tables
- Add Support for using environment variables
- Add postman collection for relevant API requests.
- Create test for Posts, Comments and Registration.
- Fix the backend bug for fetch post comments
- Add Documentation for Sprint 2
GET- http://localhost:8080/
Json Response received-
"data": "Welcome to Gatorshare made with the help of Go and Gin!"
Type | Api Endpoint | Description | Status |
---|---|---|---|
Patch | /v1/posts/update/:id |
Update an existing post | Active |
Patch | /v1/comments/update/:id |
Update an existing comment | Active |
POST | /v1/users/register |
Register new users | Active |
POST | /v1/users/login |
Authenticate and create user session | Active |
GET | /v1/users/getProfile/:id |
Get user profile by Id | Active |
DELETE | /v1/users/deleteProfile/:id |
Delete user and associated resource | Active |
PATCH | /v1/users/updateProfile/:id |
Update user details | Active |
Unit tests are present in tests folder and could be excuted using make test
Working snippets of Unit Tests
Functional test are created with the help of postman and they are present in utils folder with file name FunctionalTest.postman_collection.json