Text-justify is a API that justifies a text passed as a parameter.
To run this project, you will need to add the following environment variables to your .env file
APP_PORT
JWT_SECRET
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
POST /api/token
Send an email to get a token to use text justification.
body(json):
{
"email":"foo@bar.com"
}
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...