akbarsaladin36 / oneWord-backend-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Express - OneWord Blog App Website REST API

This API is created for backend of OneWord Blog App. OneWord blog app is blog that inspired from one of the blog site from Google called Blogger. This API are created with Express as Nodejs framework and MySQL as store database. 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. Make new file a called .env, set up first here
  4. Turn on Web Server and MySQL can using Third-party tool like xampp, etc.
  5. Create a database with the name #nama_database, and Import file sql to phpmyadmin
  6. Open Postman desktop application or Chrome web app extension that has installed before
  7. Choose HTTP Method and enter request url.(ex. localhost:3000/)
  8. You can see all the end point here
  9. Type npm run dev to activated the server.

Set up .env file

Open .env file on your favorite code editor, and copy paste this code below :

DB_PORT= <YOUR SERVER PORT>
DB_HOST= <YOUR DATABASE HOST>
DB_USER= <YOUR DATABASE USERNAME>
DB_PASS= <YOUR DATABASE PASSWORD>
DB_DATABASES= <YOUR DATABASE NAME>

SMTP_EMAIL = <YOUR EMAIL>
SMTP_PASSWORD = <YOUR PASSWORD>

Feature

  1. Login and Register User
  2. Update User's Profile
  3. Get All User and Posts
  4. Create, Update, and Delete Post
  5. Create Comment for Post

License

© Muhammad Akbar Saladin Siregar

About


Languages

Language:JavaScript 100.0%