Giter Site home page Giter Site logo

lechaterrant / api-template Goto Github PK

View Code? Open in Web Editor NEW
50.0 1.0 3.0 19.8 MB

Modern production-ready typescript backend template

Home Page: https://api-template-prod.herokuapp.com

License: MIT License

TypeScript 86.72% JavaScript 12.99% Dockerfile 0.21% Shell 0.08%
typescript prisma express bcrypt eslint jest supertest husky github-actions redis

api-template's Introduction

Hi there ๐Ÿ‘‹


Hi, I'm LeChatErrant !

  • ๐Ÿ”ญ Iโ€™m currently working on Back-end architecture, Typescript, Kubernetes and Cloud-computing design pattern
  • ๐ŸŒฑ Iโ€™m currently learning Front-end, with React and NextJS
  • ๐Ÿ“ซ You can reach me on :

Top Langs LeChatErrant's github stats

api-template's People

Contributors

actions-user avatar dependabot-preview[bot] avatar dependabot[bot] avatar lechaterrant avatar mergify[bot] avatar noerls avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

api-template's Issues

Conditionnal pre-commit script

Actual behaviour

Husky is used to bind pre-commit scripts
Linter and prisma:format are applied with each commit

Expected behaviour

Linter should only be executed on modified+commited files
prisma:format should only be executed if needed

Remove Husky hooks

Feature Request

Husky pre-commit hooks should be removed

Actual behaviour

Every files are linted before each commits, even if not touched

It is more time consuming than expected and only annoy developers

It often lead to confusion in commits when an error occurs, and pipelines are already checking code integrity

Expected behaviour

Pre commit hooks should simply be deleted

Cli upgrade

Cli should be upgraded to version 3.0.0, featuring :

  • Better display
  • Multiple bugs fixed
  • Full API resource templating, enabling to build directly after generating new code without adding any changes

Prisma seeder

Currently, database seeding is written inside the app, and executed at launch time

With Prisma v1.19 release, it is now possible to create seeders, and the seeding logic should be migrated to this new mechanism

Moving CLI to a standalone NPM package

Currently, the CLI is maintained inside the project

It shall be moved to a standalone npm package, to

  • be developed and maintained independently from the project
  • be used across multiple projects
  • not interact with project dependencies
  • be used to init a new project

Generate changelog from issues on release creation

Release creation has been automated thanks to GitHub actions

A new release can be created under Actions -> Create new release -> Run workflow
Changelog, based on repository data such as issue, should be autogenerated

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.