IT_API is an API that integrates with the Internet services of the department of Information Technology at Alexander Technological Education Institute of Thessaloniki
- You should have nodejs installed.If you don`t just go here and install it.
- You should have an internal IP of the IT departpment.Connect via vpn with the instructions here.
- You have to use preconfigured server with LDAP and MongodDB as described here
-
You have to clone the project first.
$ git clone https://github.com/apavlidi/IT_API.git
-
Before installing the modules you have to specifically install node-canvas.
Follow the instructions here to install it: https://github.com/Automattic/node-canvas/wiki/Installation%3A-WindowsNote: In case you can't install it you can alternatively do the following: You have to commend every line that contains the
text2png
module. After you commended it just run:$ npm run startDevWindows
You can either search on the project for its usage but for now it is on/routes/ldapFunctions.js
-
Go to the projecet's folder and run the following command
$ npm install
-
Next run:
$ set NODE_ENV=development & LDAP_HOST=ldap://{LDAP-SERVER-IP}:389 & LDAP_USER={USER} & LDAP_PASSWORD={PASSWORD} MONGO_URL=mongodb://{USER}:{PASSSWORD}@{SERVER-IP}/myappdev?authSource=admin
-
You have to clone the project first.
$ git clone https://github.com/apavlidi/IT_API.git
-
Go to the projecet's folder and run the following command
$ npm install
-
Next run:
$ NODE_ENV=development LDAP_HOST=ldap://{LDAP-SERVER-IP}:389 LDAP_USER={USER} LDAP_PASSWORD={PASSWORD} MONGO_URL=mongodb://{USER}:{PASSWORD}@{SERVER-IP}/myappdev?authSource=admin
-
You have to clone the project first.
$ git clone https://github.com/apavlidi/IT_API.git
-
Go to the projecet's folder and run the following command
$ npm install
-
Next run:
$ NODE_ENV=development LDAP_HOST=ldap://{LDAP-SERVER-IP}:389 LDAP_USER={USER} LDAP_PASSWORD={PASSWORD} MONGO_URL=mongodb://{USER}:{PASSWORD}@{SERVER-IP}/myappdev?authSource=admin
Pro Tip!: You can make a script and pass these variables and run the script instead of running the whole command in every run
You can find the IT_API documentation here.
The main purpose of this repository is to continue to evolve IT_API core, making it faster,more maintanable and more scalable. Development of IT_API happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements.
Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to IT_API
To help you get your feet wet and get you familiar with our contribution process, we have a list of good first issues that contain bugs or enhancement with relatively limited scope. This is a great place to get started.