First :
Open CLI (Command Line Interface)
Clone Repo
git clone https://github.com/aryejfa/test-xsis.git
cd test-xsis
Open Redis Server and Running
cd test-xsis/docker-graylog
running grayLog
docker-compose up -d
running
mySql
in my case use phpmyadmin and mysql
install node js
npm install
create database by sequelize
npx sequelize-cli db:create
npx sequelize-cli db:migrate
Second :
Run Unit Testing with Jest & Supertest
npm run test
Run apps
npm run dev
Endpoint CRUD movie
http://localhost:3001
Endpoint GrayLog
http://localhost:9000
Access Login GrayLog
Username : admin
Password : admin
JavaScript runtime:
JavaScript runtime with Node JS Node JS version 18.14.2
Framework Backend:
This project was generated with Express JS version 4.18.2.
Database:
This project was generated with MySql Database use with Xampp.
This project was generated with Cache use with Redis.
Logging:
This project was generated with use with GrayLog.
Infra:
This project was generated with docker compose use with run Docker Desktop Windows.
Addon Plugin
Framework Express Framework Express.
mkdir myapp
cd myapp
npm init
npm install express
Build an Authentication API with JWT Token jsonwebtoken.
npm install jsonwebtoken
(CORS) Cross Origin Resource Sharing CORS.
npm install cors
Cache Redis Redis.
npm install ioredis
mysql2 mysql2.
npm install mysql2
sequelize sequelize.
npm install sequelize
winston winston.
npm install winston