Giter Club home page Giter Club logo

docker_node_mongo's Introduction

code-style & security checks

unit test & functional tests workflow

planified integration tests

publish docker images

Start Wars API Bind

Star wars api bind planet is an API done with Symfony framework. It allows you to connect to SWAP API to illustrate how to use tests.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

  • A computer with Linux or MacOs

For Windows OS it is more complicated to install the application

  • Git

    • install on ubuntu dist:
    sudo apt-get install git
  • Docker

    • install on ubuntu dist:
    curl -ssL https://get.docker.com | sh 
  • Docker Compose

    • to install docker compose on ubuntu
    sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    sudo chmod +x /usr/local/bin/docker-compose
  • Make

    • to install in Linux dist
    sudo apt-get install build-essential
  • Php 7.1 or heigher

    • see the documentation

Installing

To install the project, you need to clone the repository on your machine:

git clone https://github.com/faycalBordjah/dm-ci20-4

Usage

  • To the application using PHP's built-in web server is as easy as executing this command:
make start

-You can run also the application with docker by move to your project directory and just run the following command:

docker-compse up

Now you access to the server on your localhost

you will get this response:

{
    status: "ok"
}

Running the tests

make test

Break down into end to end tests

unit tests:

php unit tests
to launch: make test_unit

functionnal tests:

The functionnal test of application
run: make test_functional

integration tests:

integration test of the application run: make test_integration

And coding style tests

The coding style of the project is checked by 2 tools:

  • php-cs-fixer that checks our code relating to several rules defined by php community
  • Hadolint that checks used Dockerfile on the project

Deployment

Add additional notes about how to deploy this on a live system

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

For the versions available, see the tags on this repository.

Authors

  • Vincent Monjaret - Initial work - vmonjaret

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

docker_node_mongo's People

Contributors

tolstoyfafa avatar

Watchers

 avatar  avatar

Forkers

adjikpo

docker_node_mongo's Issues

Report for refs/heads/master

Thanks for Using Readable Readme

This report is auto-generated by readable-readme to help your team improve the quality of READMEs.

Report for README.md

> For Windows OS it is more complicated to install the application

  • Suggestion: "it is" is wordy or unneeded

-You can run also the application with docker by move to your project directory and just run the following command:

  • Suggestion: "just" can weaken meaning

The coding style of the project is checked by 2 tools:

  • Suggestion: "is checked" may be passive voice

* [php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) that checks our code relating to several rules defined by php community

  • Suggestion: "several" is a weasel word

Add additional notes about how to deploy this on a live system

  • Suggestion: "additional" is wordy or unneeded

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

  • Suggestion: "is licensed" may be passive voice

* Hat tip to anyone whose code was used

  • Suggestion: "was used" may be passive voice

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.