Giter VIP home page Giter VIP logo

soa-sut's Introduction

This is a SUT application created for the means of Endava SoA

Installation using docker(mandatory)

  1. Install docker
  2. Clone the repo
  3. Ensure sub-derictory DB exists under the project root. If not create an empty directory DB under the project root
  4. Run docker-compose up -d This will fetch PHP, MySQL and PYTHON Docker images, launch apache on http://localhost:8080, REST API on http://localhost:5000 and MySQL on port 3306 5.1. Note that during building up Docker will ask for permissions to store data on you file system. Allow all requests.
  5. If you want to stop the service just run docker-compose down

Note If you have troubles running Docker, you'll need to check if Virtualization is enabled in the BIOS settings. Video on how to check that here

DB connection

WEB part

  • Note that application comes with pre registered users and one admin. All users have password pass123. You may check their specifics from DB.
  • Admin user is [email protected]

REST API end points:

  • Create User
   POST /users
   {
      "title" : "<Mr./Mrs.>",
      "first_name" : "<user_firstName>",
      "sir_name" : "<user_surName>",
      "country" : "<user_country>",
      "city" : "<user_city>",
      "email": "<user_email>",
      "password": "<hashed_password>",
      "is_admin": <true/false>
   }
  • List Users
   GET /users
  • List User details
   GET /users/<:id>
  • Delete User
   DELETE /users/<:id>
  • Update User
   PUT /users/<:id>
   {
      "title" : "<Mr./Mrs.>",
      "first_name" : "<user_firstName>",
      "sir_name" : "<user_surName>",
      "country" : "<user_country>",
      "city" : "<user_city>",
      "email": "<user_email>"
   }
  • Login with user (for the www aims)
   POST /login
   {
      "email": "<user_email>",
      "password": "<hashed_password>"
   }

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.