Backend API of OSIS Attendance Manager (2024).
Report Bug
·
Request Feature
To install the API on your device, follow the guide below:
- In the command prompt or terminal of your choice, clone the project:
git clone https://github.com/vinsrep/osis-api
- Go inside the folder
cd osis-api
- Install the dependencies
npm install
To setup the API on your device, follow the guide below:
- Copy .env.example and rename it to .env
cp .env.example .env
- Generate a new JWT key using Node
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
- Copy the token and paste it within .env
JWT_SECRET=paste-the-generated-string-here
- Start the server
npm start server