Giter VIP home page Giter VIP logo

sliverstreet_assignment_by_rahimi's Introduction

SilverStreet code Assignment

By Thierno Abdoul Rahimi Diallo [email protected]

Need To Have

To run this project it you most have an apache serverinstall on your computer.

What is included

After unzipping sliverStreet_assignment_by_rahimi or cloning from the git repository https://github.com/tard916/sliverStreet_assignment_by_rahimi.git

cd sliverStreet_assignment_by_rahimi

in the sliverStreet_assignment_by_rahimi folder you will:

  • The api folder which hold the the rest api
  • The config folder which hold the configuration part for the php
  • The db folder which hold an exported file of the database in json format.
  • The models folder which hold the model used to create sms and email object.

How to set up

  • Go cd sliverStreet_assignment_by_rahimi
  • In phpMyadmin create a database named sabr and then import the database file from the DB folder.
  • Change the username and password in the config folder Database.php file to your username and password.

Run

  • SMS endPoint
  1. List all messages: http://localhost:8080/sliverStreet_assignment_by_rahimi/api/sms/smsSummary.php.

  2. Consume SMS: http://localhost:8080/sliverStreet_assignment_by_rahimi/api/sms/consumeSms.php?id=5

  3. Input SMS: http://localhost:8080/sliverStreet_assignment_by_rahimi/api/sms/inputSms.php for this part i use postman to test the api and i passed the data to the body as json forma. { "sender": "0178819454", "sms_content": "this is the first test for smsSummary." }

  4. HTML Page: http://localhost:8080/sliverStreet_assignment_by_rahimi/

  • EMAIL endPoint
  1. List all messages: http://localhost:8080/sliverStreet_assignment_by_rahimi/api/email/emailSummary.php.

  2. Consume SMS: http://localhost:8080/sliverStreet_assignment_by_rahimi/api/email/consumeEmail.php?id=5 need to pass the id.

  3. Input SMS: http://localhost:8080/sliverStreet_assignment_by_rahimi/api/email/inputEmail.php for this part i use postman to test the api and i passed the data to the body as json forma. { "sender": "[email protected]", "sms_content": "this is the first test for emailSummary." }

Adding Messages

We can messages through the API http://localhost:8080/sliverStreet_assignment_by_rahimi/addMessages.php.

sliverstreet_assignment_by_rahimi's People

Contributors

tard916 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.