/mighty_text

JSON REST API for mighty text

Primary LanguageTypeScriptMIT LicenseMIT

Mighty Text JSON Api

Turn your might text to json api so you can use in other part of api.

Currently Heavy in development. We will follow semver after 1.0.0 release

What is mighty text?

According to official website "Text From Any Device. Send & receive SMS and MMS from your computer or tablet, using your current Android phone number.Messages stay in sync with your phone's SMS inbox"

Features

  • Well Documented
  • LTS Version of Node JS Supported
  • Made with :heart

Future Plan

  • Proper Error Handling
  • Using database instead of in memory
  • Improve Rest API
  • Authentication of API
  • Admin Panel to view use of json api.
  • Tests (And use of github actions)
  • Global Version of cli so u can directly do yarn global install mighty_text
  • Proper Configuration

If you want to see improvement in package development then please consider donation.

Requirements

  • Yarn or NPM (Use yarn v1 atm)
  • Node JS v10+
  • Chrome Browser

How to use?

  1. Clone the repo
// Clone this repo
$ git clone https://github.com/shirshak55/mighty_text
$ cd mighty_text
  1. Run yarn or yarn install or npm install

  2. Copy config.toml.example to config.toml and edit the variable especially gmail login and password

cp config.toml.example config.toml
  1. If you want to build the app instead of relying on distributed dist then run 'yarn build'

  2. Run yarn start

  3. If you want to run it as daemon then stop the server using SIGINT (ctrl + c) and run following command.

$ yarn global install pm2 # or npm i -g pm2
$ yarn pm2 # or npm run pm2

EndPoint

Currently we have only 1 endpoint for showing message. There will be more in future.

http://localhost:30017/sms => Endpoint for receiving message. Its in JSON format

License

I am opeen to opensource so I am publishing this with MIT License. For more info check LICENSE.

Contribution

Any ideas are welcome. Feel free to submit any issues or pull requests, please check the contribution guidelines.

Security

If you discover any security related issues, please email shirshak55@pm.me instead of using the issue tracker.

Credits