Skip to content

enkosiventures/react-api-kit

React API Kit Monorepo

CI

This monorepo contains the packages for the React API Kit project.

Project Purpose: Provide a focused middleware layer for React/React Native applications to unify client-side authentication, token management, API communication, and polling against a single backend.

Packages

  • packages/core (@react-api-kit/core): The core library containing the main functionalities.

Development Workflow

Prerequisites

  • Node.js (v22 or later recommended)
  • NPM (v10 or later)

Installation

Install all dependencies for the monorepo packages:

npm install

Common Commands

Run these commands from the root directory:

  • Build all packages:
    npm run build
  • Run tests for all packages:
    npm test
  • Run linter for all packages:
    npm run lint
  • Format code:
    npm run format
  • Clean build artifacts:
    npm run clean
  • Type check all packages:
    npm run typecheck

Developing a Specific Package

To run commands within a specific package (e.g., core), you can use npm run <script> --workspace=@react-api-kit/core:

# Build only the core package
npm run build --workspace=@react-api-kit/core

# Start core package build in watch mode (for development)
npm run dev --workspace=@react-api-kit/core

Tests are run from the root of the directory

# Run tests
npm run test

# Run tests in watch mode
npm run test:watch

Contributing

Please see the CONTRIBUTING.md file for details on how to contribute to this project.

License

This project is licensed under the MIT License - see the LICENSE file for details (You should add a LICENSE file).

About

A comprehensive toolkit for handling client-side API interactions in React applications.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •