GithubHelp home page GithubHelp logo

leaseweb's Introduction

Leaseweb API.

This is documentation for Leaseweb task using Symfony v4.2

Deployed Version

Simple angular app using Leasweb APIs.

Angular: https://stark-refuge-54064.herokuapp.com

API: https://young-waters-39571.herokuapp.com

check API docs from Here

Getting Started

Prerequisites

Make sure that you install PHP v7.1.3, MySQL v5.7 and composer

Development

Clone the source

 git clone https://github.com/Maghraby/leaseweb.git

Installing

 cd leaseweb
 composer install
Create database:
 php bin/console doctrine:database:create
Load database schema:
 php bin/console doctrine:migrations:migrate
Load data fixtures:
 php bin/console doctrine:fixtures:load
Note:

Please don't forget to change database URL from .env file

ER Diagram

ER Diagram

Domain Model Digram.

ER Diagram

Application Scenario

  • Can list all servers via /api/servers using GET method.
  • Can create servers via /api/servers using POST method.
  • Can delete a server via /api/servers/{id} using DELETE method.
  • Can get a server via /api/servers/{id} using DELETE method.
  • Can list all rams via /api/servers/{server_id}/rams using GET method.
  • Can create rams via /api/servers/{server_id}/rams using POST method.
  • Can get ram that belongs to server via /api/servers/{server_id}/rams/{id} using GET method.
  • Can delete ram that belongs to server via /api/servers/{server_id}/rams/{id} using DELETE method.

API Documentation

Please check swagger.yml file

Running

 php bin/console server:run 
NOTE

This will use default port 8000

Testing

 php bin/phpunit
Note:

Please don't forget to change database URL from .env.test file

leaseweb's People

Contributors

maghraby avatar

Watchers

James Cloos 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.