Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add count number of data from the table #59

Merged
merged 1 commit into from
Sep 16, 2019

Conversation

j4l13n
Copy link
Contributor

@j4l13n j4l13n commented Sep 16, 2019

What does this PR do?

  • get all users and the length of Articles, Reported, Notifications and Users numbers.

Description of Task to be completed?

  • Admin should be able to see all users and the count number of tables

How should this be manually tested?

  • First clone it to your machine:
https://github.com/andela/ah-lobos-backend.git
  • Open it using your favorite IDE, I recommend (vs code)

  • Install all necessary node modules

npm install
  • Run
npm run dev
  • Use Postman to test out the following endpoints

API ENDPOINTS

API Methods Description
/api/admin/users GET Get all users

You should see an image avatar on your profile if you didn't set it

Any background context you want to provide?

  • Create .env file with the help of example.env

What are the relevant pivotal tracker stories?

  • N/A

Screenshots

  • N/A

Questions

  • N/A

@j4l13n j4l13n changed the title bug(count): add count number of data from the table add count number of data from the table Sep 16, 2019
@j4l13n j4l13n force-pushed the bug-get-all-users-with-count-function branch from a2bcc1d to 43b5003 Compare September 16, 2019 00:47
@adafia adafia changed the title add count number of data from the table Add count number of data from the table Sep 16, 2019
@manzif manzif merged commit 16d9035 into develop Sep 16, 2019
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.

None yet

3 participants