Coder Social home page Coder Social logo

adonis-v5's Introduction

Adonis V5 - Template

This is a Adonis V5 API Only template with examples using relations 1:n and 1:1.

Disclaimer

I mixed a few stuff between portuguese/english because I forgot that this was going to be a template, but I'll fix that later.

First Steps

If you just installed this template or cloned this repository, you'll need to setup the project in your local machine. If you need instructions, you can just use the following commands after cloning the project:

$ cp .env.example .env

$ yarn install

$ yarn start

Content

This template use the most recent @AdonisJs packages and will be constantly updated to reflect the current Alpha Release Version.

It was built with the following specs:

1- User Entity (name, email, password)

2- Register/Login using Email and Password as credentials

3- JWT Authentication (Token generation and middleware)

4- Client Entity: just basic setup but handling birth_date and formatting dates.

5- Address Entity: with relationship to User (belongsTo - 1:1)

6- Telephone Entity: with relationship to User (belongsTo - n:1)

7- All the relationships are bidirectional (belongsTo / hasOne or belongsTo / hasMany)

Other stuff

Insomnia File

This template comes bundled with an Insomnia file to help you get started using Insomnia

Testing with Japa + SuperTest

We've made a small setup to run tests on this project. The idea was not to write all tests for the sample, but at least a starting point to write your own tests.

Just checkout this README

Credits

Credits first of all to the creators of AdonisJs, but this template was developed by @gusflopes

adonis-v5's People

Contributors

gusflopes avatar

Watchers

James Cloos 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.