GithubHelp home page GithubHelp logo

test-python-node's Introduction

Test python-node task

by Platon Yasev

First of all you have to install the last stable version of Node.js & NPM and pip. I've used Node 15.0.0, npm 7.0.2, pip 20.2.4, python 3.9.0

Then copy the project and go to the folder

$ git clone https://github.com/yasevplaton/citorus-test-python.git
$ cd citorus-test-python

Install all dependencies for Node.js

$ npm i

If you use UNIX system install several packages via homebrew

$ brew install proj gdal spatialindex

Create intersect-module-env environment, activate it and install all requirements for python

$ python3 -m venv intersect-module-env && source intersect-module-env/bin/activate && pip install -r requirements.txt

Start up the server on http://localhost:3000/

$ node server.js

Use a simple web-server for frontend testing. I've used "Live Server" VSCode extension. You can use it also or install simple http-server and start it in another bash console.

$ npm install http-server -g
$ http-server

Your web-server will start on some port (you can find the port number in the console). Go to the address in your browser (I've tested this only in Google Chrome). You will see a simple map with initial layers and button 'Clip data'. Click the button and the output intersection layer will appear in a few seconds. You can click on each polygon and find out its area in square meters calculated in Web-Mercator (EPSG 3857) projection.

test-python-node's People

Contributors

yasevplaton avatar

Stargazers

Roman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.