Skip to content

Instantly share code, notes, and snippets.

👨‍💻
_coding

Elihu A. Cruz ea2305

👨‍💻
_coding
Block or report user

Report or block ea2305

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View auth_controller.js
'use strict'
const Env = use('Env')
const Logger = use('Logger')
class AuthController {
/**
* Login user controller
* @param {Object} request : HTTP Request
* @param {Object} response : HTTP Request
View create_auth_controller.sh
# Crear controlador
adonis make:controller Auth
View adonis_test_login_user.js
'use strict'
// Importamos test y trait para poder realizar consultas a la api
const { test, trait } = use('Test/Suite')('User Login')
trait('Test/ApiClient')
// Models
const User = use('App/Models/User')
// user template
View adonis_create_test.sh
# Creamos prueba funcional
adonis make:test UserLogin --unit
View sample.vue
<template>
<section>
<h1>¡Hola mundo! Nuxt app</h1>
</section>
</template>
View configurationVcodeESlint.js
/**
* Access to user configuration: CMD + "," (MacOs)
* Add de follow keys
*/
{
"eslint.options": {
"configFile": "./.eslintrc.json"
},
"eslint.validate": [
"javascript",
You can’t perform that action at this time.