EduQ
NTNU Bachelor's degree Project
Estimated time of development completion: Late May 2016
Features
- Node.js
- Express
- Angular 2
- MongoDB
- Mongoose
- REST API
To-Do
- Improve visuals
- Implement dataexport
- Init-script (Setup admin user in database)
Dependencies
The project is depending on node-gyp
Windows
- python (
v2.7
recommended,v3.x.x
is not supported) - Add
PYTHON
as an Environment Variable - Visual Studio with C++ Tools
- For more information: nodejs/node-gyp
OS X
- python (
v2.7
recommended,v3.x.x
is not supported)(already installed on Mac OS X) Command Line Tools
via Xcode (gcc
andmake
)
Unix
- python (
v2.7
recommended,v3.x.x
is not supported) make
- A proper C/C++ compiler toolchain, like GCC
Installation
- Clone the repository from github using
git
:
git clone https://github.com/Angularne/EduQ.git
cd EduQ
- Install dependencies whith
npm
, this will also build the project
npm install
- To run the server, start the server.js file with node
npm start
- Use your favorite browser to access your new website at localhost:3000
Configuration
To configurate the project with MongoDB and SMTP, locate the config file at server/config.json
, and set the addresses and authentication. The structure should be self-explanatory.
{
"port": 3000,
"mongodb": {
"host": "localhost",
"port": "27017",
"path": "queue",
"user": "username",
"pass": "password"
},
"smtp": {
"name": "Company Name",
"host": "smtp.example.com",
"port": 465,
"secure": true,
"auth": {
"user": "email@example.com",
"pass": "password"
}
}
}