Git Product home page Git Product logo

sms-management's Introduction

sms-management

An sms application that allows users send and receive messages.

Project Structure

The project structure follows the MVC (Model-View-Controller) pattern.

├── src
│   ├── config
│   │   └── database.js
│   │   └── environment.js
│   ├── controllers
│   │   └── ContactController
│   │   │      └── index.js
│   │   │      └── ContactController.js
│   │   └── SmsController
│   │   │      └── index.js
│   │   │      └── SmsController.js
│   │   └── index.js
│   ├── helpers
│   │   └── Error.js
│   ├── index.js
│   ├── middlewares
│   │   └── ContactValidator.js
│   │   └── SmsValidator.js
│   │   └── TokenValidator.js
│   ├── database
│   │   └── migrations
│   │   │     └── 20190624124752-create-contact.js
│   │   │     └── 20190624132504-create-sms.js
│   │   └── seeders
│   │   └── models
│   │        └── index.js
│   │        └── contact.js
│   │        └── sms.js

Requirements

  • Node.js
  • npm
  • PostgresDB
  • Sequelize

Getting Started

$ git clone https://github.com/obulaworld/sms-management.git
$ cd population-management
$ npm install
$ npm run server                  # For development purpose

You should now be able to access the API via http://localhost:port/api/v1/

NOTE: Create a .env file configuration following the .env.sample.

Project Details

SMS:

  • person sending sms
  • person receiving sms
  • message of sms
  • sms status

Contact:

  • name of person
  • phone number of person

The following relationships are represented in the model:

  • All sms sent by a Contact are linked to them
  • All sms sent to a Contact are linked to them
  • Deleting a contact removes the messages they sent and references to messages they received.

API Endpoints

HTTP VERBENDPOINTSDESCRIPTIONQUERY
GET/api/v1/contacts/:contactIdGets a contact
POST/api/v1/contacts/signupCreates a contact
POST/api/v1/contacts/loginlogins a contact
DELETE/api/v1/contacts/delete/:contactIdDeletes a contact
GET/api/v1/messages/sentGets a contact sent sms
GET/api/v1/messages/receivedGets a contact received sms
GET/api/v1/message/:messageIdGets a particular contact sms
POST/api/v1/messages/:phoneNumberSends sms to a contact

sms-management's People

Contributors

obulaworld avatar

Stargazers

Ugochukwu L Ejiogu  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.