Help visitors traverse corridors with RGB ledstrips.
client/
: contains the client-side web application.server/
: contains the server.api/
: contains the api client to communicate with the server.docs/
: contains documentation.arduino/
: contains source code for the Arduino that controls the RGB.compiler/
: contains the rgblang compiler, which is the programming language used to create effects on the ledstrip. Its bytecode is interpreted on the arduino.arduino-client/
: contains source code for the application that lets the Arduino communicate with the server via serial communication.smartcard-client/
: contains code that connects NFC smartcard readers to the server.
Because all the projects (but arduino
) are developed with TypeScript and NodeJS, you need to do the following to work with them:
- Install NodeJS and PostgreSQL
- Install yarn, by opening a terminal and executing
npm install -g yarn
- Navigate to
compiler/
using the terminal and executeyarn
, thenyarn build
- Navigate back and to
api/
using the terminal and executeyarn
, thenyarn build
- Navigate back and to
client/
using the terminal and executeyarn
- Navigate back and to
server/
using the terminal and executeyarn
- While in
server/
, copy the .env.example to .env and fill in the information, like database url ... - While in
server/
, apply the database migrations using the commandnpx prisma migrate dev
- To work on the compiler, client or server, enter the
compiler/
directory using the terminal and executeyarn start
. It will now keep recompiling your code while you change something in the compiler directory. To compile it only once, executeyarn build
instead. - To work on the api, client or server, enter the
api/
directory using the terminal and executeyarn start
. It will now keep recompiling your code while you change something in the api directory. To compile it only once, executeyarn build
instead. - To work on the client, make sure api and compiler are built, then enter the
client/
directory using the terminal and executeyarn start
. - To work on the server, make sure your database is running, the api and compiler are built, then enter the
server/
directory using the terminal and executeyarn start
.
MIT 2021 (c) maintainers