Module heading comments

This commit is contained in:
Tom Russell 2018-09-30 19:50:09 +01:00
parent ae17f6db14
commit c8b320e48d
5 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,7 @@
/**
* Client-side entry point to shared frontend React App
*
*/
import BrowserRouter from 'react-router-dom/BrowserRouter';
import React from 'react';
import { hydrate } from 'react-dom';

View File

@ -1,3 +1,7 @@
/**
* Load server and listen
*
*/
import app from './server';
import http from 'http';

View File

@ -1,3 +1,9 @@
/**
* Server-side Express application
* - API methods
* - entry-point to shared React App
*
*/
import React from 'react';
import { StaticRouter } from 'react-router-dom';
import express from 'express';

View File

@ -1,3 +1,7 @@
/**
* Tile-rendering helpers
*
*/
import path from 'path';
import mapnik from 'mapnik';
import SphericalMercator from '@mapbox/sphericalmercator';

View File

@ -1,3 +1,7 @@
/**
* Tileserver routes for Express app
*
*/
import express from 'express';
import { get_bbox, render_tile } from './tile';