GithubHelp home page GithubHelp logo

adonisjs / slim-starter-kit Goto Github PK

View Code? Open in Web Editor NEW
8.0 5.0 3.0 416 KB

Smallest possible AdonisJS application with just the framework core and the Japa test runner

JavaScript 5.34% TypeScript 94.66%
starter-kit

slim-starter-kit's Introduction

AdonisJS Slim Starter Kit

This repo contains the smallest possible AdonisJS application with the framework core and the Japa test runner. You can clone this repo to start from a clean state and configure new packages as needed.

What's included

  • TypeScript setup with commands to run the development server using ts-node + swc and create a production build.
  • ESLint and Prettier setup extending the AdonisJS tooling config presets.
  • Ace command line framework
  • Everything else you get with the core of AdonisJS.

Usage

By executing the following command, you can create a new app using the slim starter kit. The command will perform the following steps.

  • Download the repo
  • Install dependencies
  • Copy .env.example to .env
  • Set the app key using the node ace generate:key command.
npm init adonisjs@latest hello-world -- -K=slim

slim-starter-kit's People

Contributors

thetutlage avatar julien-r44 avatar romainlanz avatar huync16 avatar tambouil avatar

Stargazers

Wildan Zulfikar avatar Tom Gobich avatar Maxime avatar Ashok Kumar avatar Marshall_696 avatar Baekilda avatar  avatar  avatar

Watchers

 avatar Michaël Zasso avatar  avatar  avatar  avatar

slim-starter-kit's Issues

Incorrect import statement in `container_bindings_middleware.ts`

Package version

Unknown

Describe the bug

I have identified an issue with an import statement in the app/middleware/container_bindings_middleware.ts file.
The current import statement is as follows:
import { NextFn } from '@adonisjs/core/types/http'

However, it should be updated to use TypeScript's import type syntax to correctly signify that NextFn is a type-only import. The corrected import statement should be:
import type { NextFn } from '@adonisjs/core/types/http'

Reproduction repo

No response

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.