msanchezdev / taxi24

Evaluation Project for Grupo Popular

Repository from Github https://github.commsanchezdev/taxi24Repository from Github https://github.commsanchezdev/taxi24

Taxi24, Your Ride, Your Way

Taxi24

Taxi24 is a startup focused on revolutionizing the transportation industry by providing a white-label solution. The platform provides a set of APIs that can be used by other companies to manage their passenger fleet, simplifying the process and streamlining operations.

Table of Contents

Installation

To use Taxi24, follow these steps:

Pre-requisites

Running locally

  1. Clone the repository

  2. Install dependencies using yarn install

  3. Copy the .env.example file to .env and fill in the required values

  4. (If using MongoDB locally) Run the database using one of the following commands:

    # using Docker Compose
    $ docker-compose up mongo -d
    
    # using Docker
    $ docker run -d -p 27017:27017 -v /path/to/data:/data/db mongo
    
    # using MongoDB
    $ mongod

    (If using MongoDB Atlas) Replace the MONGO_URI value in .env with the connection string provided by MongoDB Atlas

  5. Run the application using one of the following commands:

    # development
    $ yarn run start
    
    # watch mode
    $ yarn run start:dev
    
    # production mode
    $ yarn run start:prod
    
    # or with Docker Compose
    $ docker-compose up api -d # you can just run docker-compose up -d to start both the API and the database

Testing

Pre-requisites

  • Create a .env.test file for tests' environment variables**
  • Have the database running (see Running locally)

To run the tests, use one of the following commands:

$ yarn run test

# test coverage
$ yarn run test:cov

Usage

Postman Collection

You can import the Postman Collection from the postman folder to test the API endpoints, as well as the environment to be used.

Multi-tenancy

Taxi24 supports multi-tenancy, allowing multiple companies to use the platform at the same time. To use the platform, you must first create a company and then use the company's API key to access the APIs.

License

This project is licensed for the purpose of evaluating the owner only. Under no circumstances may this project be used publicly, commercially or for any other purpose without the express written consent of the owner.

This license grants the licensee a non-exclusive, non-transferable, limited license to use the software solely for the purpose of evaluating the owner. Any other use, including but not limited to reproduction, modification, distribution, or sale of the software, is strictly prohibited.

The owner of this software is not responsible for any damages or liabilities arising from the use of this software, including but not limited to direct, indirect, incidental, or consequential damages.

By using this software, the licensee agrees to be bound by the terms of this license.

More details can be found in the LICENSE file.

About

Evaluation Project for Grupo Popular

License:Other


Languages

Language:TypeScript 98.5%Language:JavaScript 1.2%Language:Dockerfile 0.3%