Code Monkey home page Code Monkey logo

variscite_api's Introduction

Также доступно на русском языке

Variscite API

Part of "Variscite" project. Here is also Dart library and client app

API based on HTTP/HTTPS web protocol, layer between database and client apps. General functions of API at this moment:

  • user authentication, groups
  • adding and managment of geospatial data (points, lines, polygins)
  • work with geolocation

This server app was developed using TypeScript, NodeJS and with Fastify as web-server. API documentation generation and request validations produced using OpenAPI specification (this specification is placed at specs/api-v0.yml). Highly recommended to work with this server app using docker-compose. MongoDB is used as main database.

For users

This instructions is common for both developers and admins

It's necessary to set enviroment variables into .env file. Good example of such configuration is written in .env.example file.

If you don't have MongoDB yet, you can use this official installation and configuration guides:

Also you can use MongoDB Atlas

For using further instructions you should have Docker Compose. Official installation guide

For developers

For running app in development mode it is enough to build container:

docker-compose build

and run it:

docker-compose up

When changing files, the program in the container will automatically restart thanks to Nodemon.

For administrators

If it is required to run app in production eviroment on server, you can build container using this command:

docker-compose -f docker-compose.yml -f docker-compose.prod.yml build

and run it:

docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d

In this case app will work in the background. You can check it' work using this command:

# I have to say that port can be different if you are using different value in .env file
curl http://localhost:80/status

You should recieve responce like this:

{"text":"OK!"}

variscite_api's People

Contributors

uslashvlad avatar

Watchers

 avatar  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.