Skip to content

Teacher crud#9

Open
Ekemiben wants to merge 10 commits intodevelopmentfrom
teacher-crud
Open

Teacher crud#9
Ekemiben wants to merge 10 commits intodevelopmentfrom
teacher-crud

Conversation

@Ekemiben
Copy link

@Ekemiben Ekemiben commented Nov 21, 2022

What does this Code do?

-Create CRUD endpoints For Teachers

Description of tasks to be completed?

It makes sure that the following routes are working:
GET /api/teacher/home
GET /api/teacher/
GET /api/teacher/id
POST /api/teacher
PUT /api/teacher/id
DELETE /api/teacher/id

How should this be manually tested/checked?

  • Clone the PR
  • Checkout to the branch teacher-crud
  • Install the dependencies using npm install
  • Create a .env file and define the following as follows:
    • PORT = 3000
    • database = <your database name>
    • username = <your username>
    • host = 127.0.0.1
    • dialect = postgres
  • Start the server by running npm start
  • To test this feature, go to--> http://localhost:3000/ <any of the routes> on postman.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants