Code Monkey home page Code Monkey logo

boilerplate-services-nodejs's Introduction

Boilerplate service

Author : Artha Prihardana

Email : [email protected]

Teknologi yang digunakan

  1. NodeJS
  2. Mysql
  3. PostgreSQL (coming soon)
  4. MongoDB (coming soon)
  5. Docker
  6. Kubernetes
  7. Gulp
  8. Babel
  9. Javascript Obfuscate
  10. dll

Pengaturan awal

  1. Pengaturan MySQL

    • Download MySQL image dari Docker Hub disini. dengan perintah sbb:

      docker pull mysql

    • Jalankan MySQL container dengan ketikan perintah sbb:

      docker run --name mysqlcontainer -d -e MYSQL_ROOT_PASSWORD='password' -p 3306:3306 mysql:latest --default-authentication-plugin=mysql_native_password

    • Bila ingin mengimport dari sql backup ketikan perintah sbb:

      docker exec -i mysqlcontainer mysql -u root --password='password' -t < dump.sql

    • Bila ingin mengimport dari sql dump ketikan perintah sbb:

      docker exec -i mysqlcontainer sh -c 'exec mysql -u root --password="password" --database=nama_database' < load_data.dump

    • Coba masuk ke MySQL dengan perintah sbb:

      mysql -u root -p -h localhost -P 3306 --protocol=tcp

    • Bila sudah berjalan dengan baik maka anda bisa koneksikan dengan MySQL workbence, DbEaver, atau Navicat.

  2. Pengaturan Boilerplate

    • Buat docker image boilerplate dengan perintah sbb:

      docker image build -t nama_service:1.0 .

    • Jalan docker image dengan perintah sbb:

      docker container run --publish PORT:PORT -d --name nama_container nama_service:1.0

  3. Pengaturan PostgreSQL (comming soon)

  4. Pengaturan MongoDB (coming soon)

Build Boilerplate

bersambung ...

boilerplate-services-nodejs's People

Contributors

arthaprihardana avatar

Watchers

 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.