Skip to content

Fatimazza/notesapp-backend-hapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notes App Backend using Node JS & Hapi


✨ Dicoding Notes App Backend NodeJS with Hapi Framework ✨

Preparation

What will be used on this project

Item Source
Editor VS Code (https://code.visualstudio.com/download)
Language Node JS (https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
Package Manager NPM (https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
Framework Hapi (https://hapi.dev/tutorials/?lang=en_US)
Dev Tools Nodemon (https://www.npmjs.com/package/nodemon)
EsLint (https://www.npmjs.com/package/eslint)
Nano Id (https://zelark.github.io/nano-id-cc/)

Pre-Requisite Installation

Install VS Code Editor and NPM.

To check whether you already installed NPM & Node.js

npm --version
node --version

Setting up Project

Clone

👉 Clone this Repository through Terminal or Command Prompt

Open the Project on Editor

Open this Back End Project using VS Code Editor.

Set up Framework and Library

Change to Project directory on Terminal or Command Prompt

cd notesapp-backend-hapi

Install Dev Tools: Nodemon

npm install nodemon --save-dev

Install Dev Tools: ESLint

npm install eslint --save-dev

Install Hapi Framework

npm install @hapi/hapi

Install Dev Tools: Nano Id

npm install nanoid@3.1.23

Run the Backend Project

Run the Project on Terminal (Local)

npm run start-dev

Note: npm run start-prod can be run on AWS Terminal when project uploaded on AWS

When server is up, can be accessed:

By Browser

Open Local Base URL

http://localhost:5000/

All Notes URL

http://localhost:5000/notes

We can use provided Front-End web

http://notesapp-v1.dicodingacademy.com/

It's Recommended to open the URL using Firefox Browser

After open the web, click Change URL to change to our Local Base URL

Stopping Project

Ctrl + C on Terminal

or

CTRL + D to exit the Terminal

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published