✨ Dicoding Notes App Backend NodeJS with Hapi Framework ✨
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/) |
Install VS Code Editor and NPM.
To check whether you already installed NPM & Node.js
npm --version
node --version
👉 Clone this Repository through Terminal or Command Prompt
Open this Back End Project using VS Code Editor.
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 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:
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
Ctrl + C on Terminal
or
CTRL + D to exit the Terminal