Giter VIP home page Giter VIP logo

exitpro-backend's Introduction

About

  • ExitPro is a student entry and exit management system designed for the main gate of IIIT Una. The system includes an Android application developed in Java and a server-side component built with Node.js. ExitPro streamlines the process of tracking student movements, enhancing security and efficiency. The application allows students to register their entries and exits seamlessly, while the server manages and records this data. This project integrates various technologies through APIs, providing a practical solution to a real-world problem faced by the institute. The refactoring and testing of the product is still ongoing. ExitPro is currently in the process of official adoption by IIIT Una.

Prerequisites

  • Node.js installed on your machine.
  • npm (Node Package Manager) installed on your machine.

Setup

  1. Install dependencies:

    npm install

Packages used (essential only)

"body-parser": "^1.20.2",
"date-fns": "^3.6.0",
"dotenv": "^16.4.5",
"express": "^4.19.2",
"mongoose": "^8.4.0",
"node-cron": "^3.0.3",
"nodemailer": "^6.9.13",
"nodemon": "^3.1.2",
"twilio": "^5.1.0"

Running the Server

  1. Start the server:

    node server.js

    The server will start running on port 3000.

Unit testing

  1. Running all the jest test files(./tests/):

    npm run test

API Endpoint

Fight Endpoint

  • URL: /fight
  • Method: POST
  • Content-Type: application/json

Sample Request Body:

{
  "player1": {
    "playerNumber": 1,
    "health": 50,
    "strength": 5,
    "attack": 10
  },
  "player2": {
    "playerNumber": 2,
    "health": 100,
    "strength": 10,
    "attack": 5
  }
}

Sample Response Body:

{
  "result": "Player 1 wins!"
}

exitpro-backend's People

Contributors

sayak22 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.