FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

tutorials.TourGuide-App/server at develop · FIWARE/tutorials.TourGuide-App · GitHub

This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Latest commit

 

History

History

README.md

server

Table of Contents

Folders

auth

Contains the files with the functions needed to interact with Keyrock and its Oauth2 Authentication flow. See more inside.

client

Symlink to the client side.

data

Contains the Open Data restaurants file provided by the Basque Government, to use with the restaurant feeder to fill the restaurant-data image.

feeders

Set of tools to generate restaurants, reviews and reservations using the dataset mentioned below. You can see further instructions regarding it's usage inside the folder.

idas

ul20.js contains the ultralight 2.0 functions needed to generate new Sensors and update them in IDAS.

misc

Contains a simple node.js script that allows to retrieve a Oauth token using the Resource Owner Credentials Grant from Keyrock. See it's usage.

public

This folder is usually intended for static files only, but in our case, the application is served by Apache server, as it is much better than Node in serving static files.

routes

Defines the application routes and the logic to interact with Orion. orion.js is the file containing the functions that interacts with the Context Broker. Also, the methods and functions will handle the data received through the server API. This includes not only the methods for creating, reading, updating and deleting items, but also any additional logic.

schema

schema.js contains the schema types definitions to validate restaurants, reviews and reservations entities.

spec

jasmine based end to end tests. See more inside.

Files

.jscsrc

JSCS is a code style linter and formatter for your style guide. This file contains the preset and configuration selected for this project.

.jshintrc

Another code style linter. Includes ES6 support.

app.js

app.js is the starting point of the application. It loads everything and begins serving user requests.

config.js

Simple template that allow us to configure several parameters for the GEris integration.

Gruntfile.js

Grunt task runner configuration file. It contains a set of tasks to automate and perform repetitive tasks like linting or testing.

package.json

Provides information to npm that allows to identify the project as well as handle the project's dependencies.

setup-test-env.sh

Script that launches a testing scenario and run the tests. In case of failure, it dumps the docker logs to the standard output.

utils.js

utils.js contains a large set of functions to handle input and output data, as well as the logic needed.


Back | FazBrowse Home | New Git URL