Giter Site home page Giter Site logo

tictactrip_test's Introduction

Justife For All - Text Justifier API

Welcome to Justife For All, the one and only API for justifying all your text. Throw plain text, receive justification !

API Endpoints

The base URL for all API endpoints is https://tictactrip.whiterqbbit.io/

  1. Root Endpoint (/):

    A GET request to this endpoint returns a nice emoji. Not much about it.

  2. Token Endpoint (/token):

    A POST request with a JSON body containing an email field to this endpoint will return a token. Doc for this endpoint here.

  3. Justify Endpoint (/justify):

    A POST request with a body of ContentType text/plain will returns justified text. Doc for this endpoint here.

Installation

To set up and run this project locally, follow the below steps:

  1. Clone the repository to your local machine:

    git clone https://github.com/whiterqbbit/tictactrip_test
  2. Fill in the environment variables in .env file:

    JWT_SECRET=your_secret
    DATABASE_URL=your_database_url
  3. Use Docker to run the project:

    docker-compose up
  4. Setup your pre-commit hook if needed in .git/hooks/pre-commit:

    #!/bin/sh
    export PATH="path/to/pnpm:$PATH"
    export PATH="path/to/node:$PATH"
    pnpm pre-commit

tictactrip_test's People

Contributors

whiterqbbit avatar

Watchers

 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.