/SMS-task

This is the repository for my Student Management System Task

Primary LanguageGo

SMS Task


Table of Contents


Description

SMS Task is a Student Management System tool.

Technologies

Main Technologies

Libraries

Back To The Top


How To Use

Tools

Setup Database

  • Create a database in PostgreSQL and add its URL as a flag while running the app with -url flag.

Run tests

  • Create a test.sh file in root directory. Add executable with chmod +x test.sh.
  • Then put this piece of code in it.
#!/bin/bash

go test ./... -cover -url="postgresql://{user}:{password}@{db url}/{db name}?sslmode=disable"
  • Then you can run make test command.
make test

Start App

  • Create Dockerfile and Docker Compose file.

  • Run the app.

docker compose up

Give it a try

  • You can check out the endpoints with inputs via PostMan by opening this

Back To The Top


Author Info

Back To The Top