- Install Node.js & NPM (https://nodejs.org/en/).
- Install Yarn (if you prefer this instead of NPM) (https://yarnpkg.com/en/).
- Install
nodemon
(https://www.npmjs.com/package/nodemon).
-
Clone/download this repo.
-
Enter the directory.
cd belajar-node
-
Install packages dependency via NPM/Yarn.
npm install
/yarn install
-
Setup all needed credentials in
.env
. -
Run the app.
nodemon
-
Hit http://localhost:3000 on your favorite browser.
-
Learn and hack it!
-
Make sure you have installed
docker
anddocker-compose
on your machine. -
Clone/download this repo.
-
Enter the directory.
cd belajar-node
-
Build & run the app with
docker-compose
.sudo docker-compose up
-
Hit http://localhost:3000 on your favorite browser to open the apps.
-
Use http://localhost:4000 to open Adminer and manage database.
-
Use PORT
33060
to connect to MySQL database from your MySQL client.