-
Notifications
You must be signed in to change notification settings - Fork 0
Djäkne backend API Usage
Sebastian Nirfelt edited this page May 18, 2016
·
8 revisions
Djäkne backend API requires MongoDB to store data.
For installation see: https://docs.mongodb.org/manual/installation/
The API stores sensitive data in /app/config/auth.js. Data:
auth.calendar = {
calendarId: 'id',
type: 'type',
projectId: 'id',
privateKeyId: 'id',
privateKey: 'key',
clientEmail: 'url',
clientId: 'id',
authUri: 'url',
tokenUri: 'url',
authProviderX509CertUrl: 'url',
clientX509CertUrl: 'url',
}
auth.mongoUrl = 'your_host:port';
auth.mongoConnection = 'mongodb://' + auth.mongoUrl + '/djakne';
auth.mysql = {
host: 'host',
port: 'port',
user: 'user',
password: 'password',
database: 'database',
};
auth.wifiPassword = {
premium: 'password',
member: 'password',
};
To install dependencies run: npm install
To start API server run: npm start