Welcome to the RPI-RFID-Door-Control repository! This guide will walk you through the steps needed to get the service up and running on your machine. 🚀
Before you begin, ensure you have the following installed:
- Node.js and npm (Node Package Manager) 📦 (Version 20.11.0 Recommended)
- Docker and Docker Compose 🐳 (Install via: https://docs.docker.com/engine/install/ubuntu/#installation-methods)
Follow these steps to set up the project:
First, clone the repository to your local machine:
git clone https://github.com/Paul1404/RPI-RFID-Door-Control.git
cd RPI-RFID-Door-Control
Run the following command to install the necessary Node.js dependencies:
npm install
Ensure Docker and Docker Compose are installed on your system. For detailed instructions, refer to the official Docker documentation.
Navigate to the tools
directory and run the main setup script:
cd tools
bash setup-main.sh
Follow the prompts to complete the setup. The script will handle the configuration of environment variables and other necessary setup tasks.
Next, run the database setup script:
bash setup-db.sh
This script sets up the database using Prisma migrations and allows you to create a new user and configure additional settings.
After completing the setup, start the service by running:
npm run web
Once the service is running, it will be accessible via:
https://<your-ip-address>:3000
Replace <your-ip-address>
with the IP address of the machine where the service is installed.
If you encounter any issues or have questions, please refer to the detailed documentation or open an issue in the GitHub repository.
Thank you for using RPI-RFID-Door-Control! 🎉