Git Product home page Git Product logo

api-template's Introduction

API-template

Lint Unit tests Integration tests

What is it ?

  • Decisions are already made
  • Configurations are already written
  • CI / CD pipelines are running
  • Development environment is configured
  • CLI adds new routes
  • Frontend is available
  • Deployment is ready
  • Focus on what matters : code

ย 

This project provides a typesafe, production ready modern web API template along with a full development environment.

It gives your project a clean base to start and follows development good practices, essentially focusing on maintainability and extensibility

Lastly, it aims to save developers a lot of time since all nasty configurations are already written (typescript, eslint, jest, docker, CI, ...) and technologies are already chosen (language, testing framework, database, ORM, ...)

ย 

Template
This repository is templated. Use it as a base for your own projects by clicking on Use this template

API-template is fully integrated with

Don't hesitate to share your improvements or to give feedback on Discord (LeChatErrant#6074) ๐Ÿ˜‰

Table of contents

Documentation

Documentation can be found in the wiki

Deployment

API is automatically deployed on Heroku and can be reached on api-template-prod.herokuapp.com

For a complete production deployment, see ops-template

Additionally, you can try out the API here, on Postman

Getting started

  1. Make sure the .envrc is loaded (have a look here)
  2. Install dependencies with npm install
  3. Launch a local database with npm run dev:db
  4. Run npm run dev

Deployment example

Technologies

...and more

CLI

The template comes with a Command-Line Interface that helps you to initialize, develop and maintain your projects. It saves you from writing boilerplate code

The CLI is currently under heavy development and will be release soon โค๏ธ

More details in wiki

CLI - Generate

Roadmap

  • CLI to create, extend and manage API resources
  • Auto generated code documentation
  • Integration with Prisma seeders
  • Back office template

How to contribute

  1. Fork it (https://github.com/LeChatErrant/API-template/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Issues and comments welcomed ! ๐Ÿ˜‰

Contributors

GitHub Logo ย  LeChatErrant - creator and maintainer

api-template's People

Contributors

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

Watchers

 avatar

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.