Skip to content

Epitech/ops-E-Token-API

Repository files navigation

E-Token-API

This code is the property of Epitech.

API for students cards. This API has been released to encourage side projects using students card.


Production

  • npm install
  • Generate a SSL/TLS certificate and edit path in server.js
  • Run: node server.js > server.log 2>&1 &

Development

  • npm install
  • Install MySQL database on local machine and specify environment variables DATABASE_USER, DATABASE_PASSWORD, DATABASE_ADDR, DATABASE_PORT, DATABASE_NAME if necessary.
  • Run: DEBUG=1 PORT=5000 node server.js
  • Server will be available on localhost on port specified using HTTP protocol

Test

  • Execute two first points of Developement step
  • Run: npm test

Production API entry point: https://whatsupdoc.epitech.eu

Note: Database hosted locally on Epitech's infrastructure. The database cannot be accessed publicly, thus making it only accessible through this API.


Contact: mickael.leclerc@epitech.eu