Code Monkey home page Code Monkey logo

adonis-qa-application's Introduction

Adonis fullstack application

This is the fullstack boilerplate for AdonisJs, it comes pre-configured with.

  1. Bodyparser
  2. Session
  3. Authentication
  4. Web security middleware
  5. CORS
  6. Edge template engine
  7. Lucid ORM
  8. Migrations and seeds

Setup

Use the adonis command to install the blueprint

adonis new yardstick

or manually clone the repo and then run npm install.

Migrations

Run the following command to run startup migrations.

adonis migration:run

Create

Controller: adonis make:controller collection --resource

Run

adonis serve --dev

Mac 建立映射端口

sudo curl -o install.sh "https://download.51miaole.com/install.sh" && sudo bash ./install.sh --username jiangkun --token f6fe94a2ad2aa310ab9ad0c57aad7f98

SQL

  null - 草稿,0 - 审核,1 - 通过,2 - 失败,3 - 删除,4 - 下架

连接配置

'use strict'

const Env = use('Env')
const Helpers = use('Helpers')
const Moment = use('moment')
var config = {
  server: 'localhost',    //服务器地址
  authentication: {
    type: 'default',
    options: {
      userName: 'sa',    //用户名
      password: 'sql2016.'    //密码
    }
  },
  options: {
    encrypt: false,//  如果不是 Microsoft Azure,则必须设置为 false,否则报错
    database: 'UFDATA_956_2022',    //数据库
    port: 1433  // 端口号
  }
};

adonis-qa-application's People

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.