Skip to content

Create assignment crud#10

Open
JudySeyram wants to merge 34 commits intodevelopmentfrom
create-assignment-CRUD
Open

Create assignment crud#10
JudySeyram wants to merge 34 commits intodevelopmentfrom
create-assignment-CRUD

Conversation

@JudySeyram
Copy link

What does this PR do

  • This PR creates CRUD endpoints for assignment

Description of tasks to be completed?

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

How should this be manually tested/checked?

  • Clone the PR
  • Checkout to the branch create-assignment-CRUD
  • Install the dependencies using npm install
  • Start the server by running npm start
  • Create a .env file and define the following as follows:
    • PORT = <3000>

    • database = <database name>

    • username = <your username>

    • host = <127.0.0.1>

    • dialect = <postgres>

    • To test this feature go to http://localhost:3000/ <test any of the routes> on your browser.

to run the seeders
make sure you run the migrations: sequelize db:migrate
then run the seeders: sequelize db:seed
Copy link
Contributor

@TijanAyo TijanAyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly put all the information in the config.js file into an .env file, you should not be showing details on your database out in the public.

Copy link
Contributor

@Hazeem01 Hazeem01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job Judith !!
Our README now has a better and more descriptive look. 🤗

@JudySeyram
Copy link
Author

JudySeyram commented Nov 28, 2022 via email

Copy link

@Ekemiben Ekemiben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check line 7: make sure to have Git, Node.js, and "PostgreSQL" installed on your local machine as this will enable the user to write migration commands

@JudySeyram
Copy link
Author

JudySeyram commented Nov 29, 2022 via email

Copy link

@Ekemiben Ekemiben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly remove the codes duplicate on line 1 thank you

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.

6 participants