j-hazart / text-justify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Text-Justify

Text-justify is a API that justifies a text passed as a parameter.

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

APP_PORT

JWT_SECRET

Run Locally

Clone the project

  git clone git@github.com:j-hazart/text-justify.git

Go to the project directory

  cd text-justify

Install dependencies

  npm install

Start the server

  npm run start

API Reference

POST email

  POST /api/token

Send an email to get a token to use text justification.

body(json):

  {
    "email":"foo@bar.com"
  }

POST text

  POST /api/justify

Send a text to justify it with maximum 80 caracters per line. Usage limited to 80 000 words per day and user.

body(text):

  Lorem ipsum dolor sit amet, consectetur adipiscing elit...

Authors

About


Languages

Language:TypeScript 100.0%