This is a data entry application for Recovery and Detox Units.
Currently, it has a member list with optional self-registration, and activity attendance.
- Frontend: React, Vite, TypeScript
- Backend: Express, Node.js
- Database: SQLite with Prisma ORM
- Node.js/NPM and Git installed
-
Clone the repo
git clone https://github.com/eligibbs/Data-Entry-Site
-
Install Dependencies
npm install
-
Configuring
Copy
.env.exampleto.envand change the options listed -
Initialize Database
npx prisma migrate dev --name init
You need to run both the backend server and the frontend development server.
- Combo Server Starter
Open a terminal and run:
npm start
-
Start the Backend Server Open a terminal and run:
npm run server
The server will start on
http://localhost:3000. -
Start the Frontend Open a new terminal tab and run:
npm run dev
The frontend will start (usually on
http://localhost:5173).
-
Copy the service file to
/etc/systemd/system/cp data-entry.service.example /etc/systemd/system/data-entry.service
-
Reload the dameon
systemctl daemon-reload
-
**Enable the service
systemctl enable --now data-entry.service
-
Give executable permission to the update script
chmod +x update.sh
-
Run the script (from the project directory)
./update.sh
-
Pull the service offline (if dameonized)
systemctl stop data-entry.service
-
Pull the changes
git pull
-
Update dependencies
npm install
-
Run Prisma DB migrations
npx prisma db push
-
Bring the service back up (Again, if dameonized)
systemctl enable --now data-entry.service
- Quick Add: Add new members with Name, Phone Number, and Date of Birth.
- Profile:
- Select a member to view details.
- Edit member profile details.
- Add attendance records (Date and Activity).
- View attendance history.