Git Product home page Git Product logo

container-simple-apps-nodejs's Introduction

Alt Text

CONTAINERIZATION NODEJS USING DOCKER

Technology Used :

  • Javascript
  • Node.js
  • MongoDB

Installed Packages

  • express
  • cors
  • mongoose
  • mongoose-unique-validator
  • dotenv

Architecture

Model => Router => Controller

How To Run / Install

Clone this repository
git clone https://github.com/HaradaKumiko/container-simple-apps-nodejs.git

Open this project
cd container-simple-apps-nodejs

Edit host on your machine

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

Build docker image

Make sure you already install docker on your machine, and run this command :

docker build --no-cache  -t haradakumiko/nodetestdocker -f deploy/Dockerfile . 

Run your apps

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
Ready to go

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

container-simple-apps-nodejs's People

Contributors

haradakumiko avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.