This is a backend server for a school management system. It provides APIs for managing students, teachers, courses, and classrooms.
To install this project, you will need to have Golang and MySql installed on your system. Once you have these dependencies installed, you can follow these steps:
- Clone this repository:
git clone https://github.com/manlikeNacho/School-Management-Backend-Server.git
- Install the dependencies:
go get i
- Start Server
go run . Or go run main.go
This will start the server on port 8080 by default. You can configure the port by setting the PORT
environment variable.
This server provides the following APIs:
GET /students
: Get a list of all studentsGET /students/:id
: Get a single student by IDPOST /students
: Create a new studentPUT /students/:id
: Update an existing studentDELETE /students/:id
: Delete a student by IDGET /teachers
: Get a list of all teachersGET /teachers/:id
: Get a single teacher by IDPOST /teachers
: Create a new teacherPUT /teachers/:id
: Update an existing teacherDELETE /teachers/:id
: Delete a teacher by IDGET /courses
: Get a list of all coursesGET /courses/:id
: Get a single course by IDPOST /courses
: Create a new coursePUT /courses/:id
: Update an existing courseDELETE /courses/:id
: Delete a course by IDGET /classrooms
: Get a list of all classroomsGET /classrooms/:id
: Get a single classroom by IDPOST /classrooms
: Create a new classroomPUT /classrooms/:id
: Update an existing classroomDELETE /classrooms/:id
: Delete a classroom by ID
You can use these APIs to manage the school's data. You can send requests to these APIs using a tool like Postman or by writing your own client.
If you would like to contribute to this project, please feel free to submit a pull request. Before submitting a pull request, please make sure that your changes are tested and follow the code of conduct.
This project is licensed under the MIT License.
If you have any questions or issues, please feel free to open an issue or contact me directly at eiheanacho52@gmail.com.