API-first, open-source cloud robotics.
- Set default dev environment variables:
cp .dev.env .env
- Install the node modules:
npm i
- Bring up the database:
docker-compose up timescale -d
- Push the latest schema:
export CONNECTION_STRING="postgresql://user:password@localhost:5432/db"
npx prisma db push --schema=./src/db/schema.prisma
- Seed the database with a dev tenant and account:
npm run seed:dev
- Bring up the MQTT broker:
docker-compose up -d mqtt
- Set up authentication and authorization for the MQTT broker:
source scripts/init-mqtt.sh
- Start the server:
npm run start
- Stop database and MQTT broker when you're done:
docker-compose stop
- Bring up the database and MQTT broker and then start the server:
docker-compose up -d
npm run start
- Stop database and MQTT broker when you're done:
docker-compose stop
- EMQX Management API docs -
localhost:18083/api-docs/index.html
- EMQX Management API Management dashboard -
http://localhost:18083
- username:
user
- password:
pass
- username:
docker exec -it timescale psql -h localhost -p 5432 -U user -d db
npx prisma migrate dev --schema=./src/db/schema.prisma --name <name> --create-only
- Node.js (14)
- TimescaleDB
- EMQX
- React