Skip to content

The Internet services of the IT department of Alexander Technological Education Institute of Thessaloniki

License

Notifications You must be signed in to change notification settings

apavlidi/IT_API

Repository files navigation

IT_API is an API that integrates with the Internet services of the department of Information Technology at Alexander Technological Education Institute of Thessaloniki

Installation

Requirements

  • You should have NodeJS installed. If you don't, just go to the official website and see instructions on how to install it from there.
  • You should have an internal IP of the IT departpment. Connect via VPN by following the instructions here.
  • You have to use a server with LDAP and MongodDB pre-configured as described here.

Windows

  • Clone the project on your local machine.
    $ git clone https://github.com/apavlidi/IT_API.git

  • Before installing the NodeJS modules you have to specifically install node-canvas.
    Follow the instructions here on how to install it: https://github.com/Automattic/node-canvas/wiki/Installation%3A-Windows

    Note: In case you're having issues with the installation, you can alternatively do the following: Comment out every line that contains the text2png module. After that just run the following command: $ 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 project's folder and run the following command
    $ npm install

  • Then run:
    $ set NODE_ENV=development & set LDAP_HOST=ldap://{LDAP-SERVER-IP}:389 & set LDAP_USER={USER} & set LDAP_PASSWORD={PASSWORD} & set MONGO_URL=mongodb://{USER}:{PASSSWORD}@{SERVER-IP}/myappdev?authSource=admin

Linux

  • Clone the project on your local machine.
    $ git clone https://github.com/apavlidi/IT_API.git

  • Go to the project's folder and run the following command
    $ npm install

  • Then 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

Mac OS

  • Clone the project on your local machine.
    $ git clone https://github.com/apavlidi/IT_API.git

  • Go to the project's folder and run the following command
    $ npm install

  • Then 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 write a script and pass these variables to it. Then run the script instead of writing the same commands repeatedly every time by hand.

Documentation

IT_API documentation is available here.

Contributing

The main purpose of this repository is to further the development of IT_API, by making it faster, more maintainable and more scalable. Development of IT_API happens here on GitHub, and we are grateful to the community for contributing bugfixes and improvements.

Contributing Guide

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.

Good First Issues

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 enhancements with relatively limited scope. This is a great place to get started.

Feedback

Suggestions and/or improvements are welcome!

About

The Internet services of the IT department of Alexander Technological Education Institute of Thessaloniki

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published