Git Product home page Git Product logo

adonis-smart-api's Introduction

Adonis Smart API

This is the boilerplate for creating an API server in AdonisJs, it comes pre-configured with.

  1. Bodyparser
  2. Authentication
  3. CORS
  4. Lucid ORM
  5. Migrations and seeds

Setup

  1. Clone this repo
  2. cd adonis-smart-api
  3. Run npm install
  4. Create database
  5. Setting connection db in .env
  6. npm i -g @adonisjs/cli
  7. Run adonis key:generate
  8. Run adonis migration:refresh && adonis seed:sync
  9. Run adonis serve --dev
  10. Enjoy

Swagger

http://localhost:4000/docs

Testing

npx nyc adonis test

File % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 98.53 87.5 93.75 98.53
Controllers/Http 100 90 100 100
AuthController.js 100 100 100 100
PostController.js 100 75 100 100 48
UserController.js 100 100 100 100
Models 94.44 83.33 88.89 94.44
Post.js 100 75 100 100 13
Token.js 100 100 100 100
User.js 90 100 80 90 43

adonis-smart-api's People

Contributors

dependabot[bot] avatar hscstudio 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.