Coder Social home page Coder Social logo

potlamohansai / post-my-message Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pradumnasaraf/post-my-message

0.0 0.0 0.0 88 KB

Send sms or a beautiful quote to your friend by a simple POST request.

Home Page: https://post-my-message.vercel.app

License: GNU General Public License v3.0

Shell 3.69% JavaScript 71.48% CSS 4.98% HTML 15.28% Dockerfile 4.58%

post-my-message's Introduction

post my message banner

Send sms or a beautiful quote to your friend by a simple POST request.

Format Publish Image to GitHub Container Registry Releases

๐Ÿ‘จโ€๐Ÿ’ป Tech stack

๐Ÿ› ๏ธ Using the Routes

After deploying the API the request will be on {API_BASE_URL}/{route}. This project is deployed with the base URL as https://post-my-message.vercel.app/.

Send a custom message to a number - /sendsms POST method.

It sends a custom message to the number provided. The request body should have a "phone" and "message"property that contains the receiver's number and a message. The POST body should be in JSON format.

{
    "message": "Hey, this message is from Twilio",
    "phone": "+111111111111"
}

Send a random quote to a number - /sendquote POST method.

It sends a random quote to the number provided. The request body should have a "phone" property that contains the receiver's number. The POST body should be in JSON format.

{
    "phone": "+111111111111"
}

๐Ÿ‘จโ€๐Ÿ’ป Developing the API

This section includes how to test and develop API at your end. You can either run it in the cloud using Gitpod or run it inside a container using docker or choose to set up the complete environment locally.

GitPod

Open in Gitpod

Docker Compose

Prerequisites - Docker and Compose installed in your local system.

NOTE: First add the the environment variables to the .env.example file.

You can run below command and you can access the API at localhost:9001

docker compose up

Local setup

Prerequisites- Node.js installed and a Mongo server on your localhost.

NOTE: First add the the environment variables to the .env.example file.

Step 1: Copy .env.example to .env.

npm run env

Step 2: Run the app in development mode.

npm run dev

You can access the API at localhost:9001

๐Ÿ›ก๏ธ License

This project is licensed under the GPL-3.0 license - see the LICENSE file for details

๐Ÿค Support

If you liked the project, please consider giving it a โญ๏ธ

post-my-message's People

Contributors

aryangupta99 avatar kalyan-vurugonda avatar kelvinparmar avatar palakbhawsar98 avatar pradumnasaraf avatar shukla007 avatar theselaw 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.