forked from LaloCo/ReadBooksBackend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.js
More file actions
16 lines (12 loc) · 672 Bytes
/
server.js
File metadata and controls
16 lines (12 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var app = require('express')(); // Create an instance of an Express app
var mobileApp = require('azure-mobile-apps')(); // Create an instance of a Mobile App with default settings
mobileApp.tables.add('Clients'); // Create a table for 'Book' with default settings
mobileApp.tables.add('Tracks'); // Create a table for 'Book' with default settings
mobileApp.tables.add('Bikes'); // Create a table for 'Book' with default settings
mobileApp.tables.add('Bookings');
mobileApp.tables.add('SignedTracks');
mobileApp.tables.add('Pricing');
mobileApp.tables.add('BikeChecked');
mobileApp.tables.add('BikeChecklist');
app.use(mobileApp);
app.listen(process.env.PORT || 3000);