This document summarizes a training session on becoming a back-end developer at GITS Indonesia. It discusses using Node.js and Express to build microservices with a RESTful API, testing services and controllers using Mocha and Chai, running applications with Docker and Docker Compose, and managing environment variables for development and deployment. The session concludes with a practice exercise and discusses future developments like integrating promises and continuous integration/deployment.
1 of 11
Download to read offline
More Related Content
Training web @GITS
1. Training Session 1
feat. Web @GITS
Mobile Solution Company
How to be BEKEN* at GITS Indonesia?
By: Rakhmatullah Yoga Sutrisna
yoga@gits.co.id
*read: back-end
6. Using Mocha as testing environment
Using Chai as assertion library
Application testing (src/tests)
7. Run with Docker (vs. VM)
More info: https://docs.docker.com/get-started
8. Powered by docker-compose
Encapsulated in shell commands
Deployment scripts
9. Development
use .env in root directory
Docker deployment
use environments field in docker-compose.yml, with
variables from .env
Environment variables
10. Callbacks -> Promise
Integrate with CI/CD (Jenkins, etc)
Next developments