- Javascript
- Node.js
- MongoDB
- express
- cors
- mongoose
- mongoose-unique-validator
- dotenv
Model => Router => Controller
git clone https://github.com/HaradaKumiko/container-simple-apps-nodejs.git
cd container-simple-apps-nodejs
On this documentation i use ubuntu
If you use another OS, just type at your favorite search engine, keyword: "how to modify hosts file on <insert your OS here>
"
in ubuntu edit hosts file
sudo nano /etc/hosts
And add this on top the files
127.0.0.1 pelanpelanpaksupir.com
Don't forget to save it, using ctrl + o & ctrl + x
Make sure you already install docker on your machine, and run this command :
docker build --no-cache -t haradakumiko/nodetestdocker -f deploy/Dockerfile .
Insert the deploy directory
cd deploy
If you have web server and mongodb running on your background process, don't forget stop it first Make sure you already install docker compose on your machine, and run this command :
docker compose up -d
And voila, you can access your apps on domain :
http://pelanpelanpaksupir.com
Don't forget to read the damn documentation api on the postman file collection