Skip to content

asrofiw/newsportal-backend

Repository files navigation

NewsPortal Backend

This is a NewsPortal Backend application for NewsPortal Mobile App. Built with NodeJs using the ExpressJs Framework. Express.js is a web application framework for Node.js. More about Express

Built With

Express.js Node.js

Requirements

  1. Node Js
  2. Node_modules
  3. Postman
  4. Web Server (ex. localhost)

How to run the app ?

  1. Open app's directory in CMD or Terminal
  2. Type npm install
  3. Turn on Web Server and MySQL can using Third-party tool like xampp, etc.
  4. Type sequelize db:migrate in CMD or Terminal
  5. Open Postman desktop application or Chrome web app extension that has installed before
  6. Choose HTTP Method and enter request url.(ex. localhost:8080/)
  7. You can see all the end point here

End Point

1. GET

  • /private/news/user(Get all news/article from user login)

  • /private/news/user/:idNews (Get news/article from user login with specific id)

  • /private/news (Get all news/article)

  • /private/news/:id (Get news/article detail)

  • /private/users (Get detail user login)

  • /users (Get all users)

2. POST

  • /auth/register (Create account)

  • /auth/login (Login for user)

  • /private/news (Create news/article)

3. PATCH

  • /private/news/:idNews (Update news)

  • /private/users (Update user's profile)

  • /private/users/change-password (Update user's password)

4. DELETE

  • /private/news/:idNews (Delete news by id)

  • /private/users (Delete account)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published