K2

screenshot of K2

Koa2 API template with passport, GraphQL, flowtype, knex and more.

Overview

K2K2Build is an innovative framework that simplifies the process of setting up a Koa 2 and GraphQL server, designed for developers who want to avoid the hassle of boilerplate code. This package combines a suite of modern tools to streamline development, enhance efficiency, and ensure that your applications are built on solid foundations. With K2K2Build, you can start focusing on writing your application logic right away, rather than getting bogged down in configuration details.

Whether you're a seasoned developer or just getting started, K2K2Build provides a range of features that make building and deploying your web applications a breeze. Paired with Docker for seamless database management and testing support through Jest, this package caters to the needs of modern web development without the complexity.

Features

  • Koa 2 Middleware: Leverage the power of Koa 2 for writing your application’s middleware, focusing on simplicity and flexibility.
  • Babel Integration: Use the latest ES6/7 features without worry, thanks to Babel, which allows you to write modern JavaScript today.
  • Easy Authentication with Passport.js: Enjoy seamless user authentication with Passport.js, making implementation straightforward and secure.
  • Knex.js for Database Management: Access better documentation and a more intuitive API with Knex.js compared to other ORM solutions like Sequelize.
  • GraphQL Support: Build efficient APIs using GraphQL, allowing you to request only the data you need.
  • Comprehensive Testing with Jest: Test your application effortlessly using Jest, with the ability to set up directory-specific test cases.
  • No Worries with Prettier: Maintain code formatting standards automatically, ensuring your codebase is neat and consistent.
  • Type Safety via Flowtype: Implement strong type checking with Flowtype to catch potential issues early in your development process.
graphql
Graphql

A website that uses GraphQL as a query language to manage data fetching and state management. This includes features such as a strongly typed schema, client-side caching, and declarative data fetching to streamline data management and optimize website performance.