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

Repository files navigation

Vagrant

GitHub issuesGitHub 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

HostGuestService
8080HTTP
18831883MQTT
33063306MySQL
80008000PHP Dev
88888888WebSocket
2701727017MongoDB

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