eGyan is a web application built with Node.js (Express) and Hasura (https://hasura.io/) Platform. It is a simple and effective eLearning app for everyone.
Building the simple api with sequelize, mysql and express js. this repository contains the code about how to use sequelize with mysql at express js. for example i have provide the crud operation to this repository. You can also testing the api with chai and mocha with chai-http by this repository
varVectorTileGenerator=require('vector-tiles-generator');// initialize once your generatorvarvectorTileGenerator=newVectorTileGenerator({pgPool: pool// you must provide your own pg-pool});app.get('/layer/:z/:x/:y.mvt',function(req,res){vartile={x: parseInt(req.params.x),y: parseInt(req.params.y),z: parseInt(req.params.z)};// nothing before zoom level 9if(tile.z<9){returnres.status(204).send();// 204 empty status for mapbox}returnvectorTileGenerator.get({points: `SELECT name, ST_AsGeoJSON(ST_Transform(way, 4326)) as the_geom_geojson FROM planet_osm_polygon WHERE way && !bbox!`// !bbox! will be replaced},tile).then(function(result){if(!result||result.length===0){returnres.status(204).send();// handle empty status for mapbox}returnres.send(result);});});
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].