Skip to content

projet-aaa/Api-Poc

Repository files navigation

Api Platform + ReactJs Proof of Concept

This repository contains a proof of concept for projet-aaa development. It aims at creating a double channel using on the one hand Api Platform for REST API calls and on the other hand a websocket with NodeJs.

To run that repository, you need :

Install

To begin with, clone the project :

git clone https://github.com/projet-aaa/Api-Poc.git
cd Api-Poc

Usage

To make the containers run, you can use the following commands :

docker-compose build
docker-compose up -d

The shortcut command for this is :

make install

To stop the containers, use docker-compose stop or make stop.

To remove the containers (you would need to do it in case of strange problems or build new versions), use docker-compose rm or make rm.

To see the containers status, use docker-compose ps or make status shortcut command.

Application

Once you have build your images and run you containers, you can :

docker-compose exec web <your_command>
docker exec -ti --user root <your_apiplatform_web_container_id> /bin/bash

Tests

Behavioural tests on API

You can test your project with Behat. To do so, just type make test_behat

You can also use :

	docker-compose run --rm web vendor/bin/behat .

Test Redis Publish suscribe

Install redis-tools :

sudo apt-get install redis-tools
redis-cli
> Monitor

You should see incoming publish/suscribe messages between API and websockets.

Licence and so on : Refer to Api Platform great stuff.

Sources

Redis, NodeJs and Publish/Suscribe

About

Api Platform + ReactJs + Node Demo

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors