Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.
mriptaPublic archive

About

Development environment for the MRIPTA project

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

Vagrant

GitHub issues GitHub pull requests

Description

This repository will setup a development environment for the MRIPTA project. It is using the bionic64 base image and then running the provision.sh to install and configure all the required services. The deployment is done using the deploy.sh script without sudo privileges.

Using

Start by cloning the repo. On windows run your terminal client as admin, we recommend using something like Git Bash and then run vagrant up on the vagrant project folder. On other operating systems just do vagrant up on the vagrant project folder and you are ready to go.

Services

The services versions installed in this image was carefully selected to be as close possible to the ones running on the production server.

  • Ubuntu 18.04 LTS
  • PHP 7.4
  • NodeJS 14.17 LTS
  • NPM 6.14
  • MongoDB 4.2
  • MySQL 5.7
  • Nginx 1.20
  • YARN 1.22

Access Data

  • MongoDB
    Username: admin
    Password: admin
  • MySQL
    Username: root
    Password: root

Port Mapping

Host Guest Service
80 80 HTTP
1883 1883 MQTT
3306 3306 MySQL
8000 8000 PHP Dev
8888 8888 WebSocket
27017 27017 MongoDB

Dashboard

Dashboard Repository

Broker

Broker Repository
The broker script is running inside a screen with nodemon constantly checking for new file changes and consequently restarting the process to load them.

screen

To list the screen processes
screen -ls
Attach
screen -r
Detach
CTRL + A D
Create a new broker session
screen -dmS broker nodemon -L index.js

About

Development environment for the MRIPTA project

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages