Code Monkey home page Code Monkey logo

grid-api's Introduction

Deployment at IDS

Using API platform Docker Compose deployment.

On IDS servers we recommend using the restart_api_platform.sh bash script

git clone --recursive https://github.com/MaastrichtU-IDS/grid-api.git
./restart_api_platform.sh

# Start build manually
docker-compose -f docker-compose-prod/docker-compose.build.yml pull --ignore-pull-failures
docker-compose -f docker-compose-prod/docker-compose.build.yml build --pull

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

Should we push to container registry? docker-compose -f docker-compose-prod/docker-compose.build.yml push

Generate schema

See API-platform documentation.

  • Install
# Just install schema-generator from composer.json
composer install
# Install PHP Composer and dependencies if needed
sudo apt install curl php-cli php-mbstring git unzip php-xml
composer require --dev api-platform/schema-generator
vendor/bin/schema generate-types api/src/ api/config/schema.yaml

The PHP types for this schema has now been generated in api/src/Entity

Test API platform locally

# In grid-api
docker-compose up -d
docker-compose down

Navigate to

Deploy in production

Warning: to deploy in production we might need to customize secrets and password in the .env file.

See example of .env file here.


Create a new API platform

git submodule add https://github.com/MaastrichtU-IDS/docker-compose-prod.git

Original readme

API Platform is a next-generation web framework designed to easily create API-first projects without compromising extensibility and flexibility:

Travis CI CircleCI AppVeyor Codecov SymfonyInsight Scrutinizer Code Quality

The official project documentation is available on the API Platform website.

API Platform embraces open web standards (OpenAPI, JSON-LD, GraphQL, Hydra, HAL, JSONAPI, JWT, OAuth, HTTP...) and the Linked Data movement. Your API will automatically expose structured data in Schema.org / JSON-LD. It means that your API Platform application is usable out of the box with technologies of the semantic web.

It also means that your SEO will be improved because Google leverages these formats.

Last but not least, the server component of API Platform is built on top of the Symfony framework, while client components leverage React (a Vue.js flavor is also available). It means that you can:

  • Use thousands of Symfony bundles and React components with API Platform.
  • Integrate API Platform in any existing Symfony or React application.
  • Reuse all your Symfony and React skills, benefit of the incredible amount of documentation available.
  • Enjoy the popular Doctrine ORM (used by default, but fully optional: you can use the data provider you want, including but not limited to MongoDB and Elasticsearch)

Install

Read the official "Getting Started" guide.

Credits

Created by Kévin Dunglas. Commercial support available at Les-Tilleuls.coop.

grid-api's People

Contributors

vemonet avatar amrapalijz avatar micheldumontier avatar dependabot[bot] avatar

Stargazers

Ján Bočínec avatar  avatar

Watchers

 avatar James Cloos avatar  avatar  avatar Pedro V avatar Kody Moodley avatar

grid-api's Issues

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.