GithubHelp home page GithubHelp logo

adonis4's Introduction

Description


Build Status Coverage Status HitCount contributions welcome


Simple project Adonis 4.0

Requirements

  • NodeJS 8.0 or greater
  • NPM 3.0 or greater
  • AdonisJS 4.0 (npm i -g @adonisjs/cli)

Installations

  • Clone this project
  • Goto root folder and install dependency using command npm install
  • Copy .env.example to .env
  • Set your own configuration variable
  • Generate random secret key using command adonis key:generate
  • Start server development using command adonis serve --dev (development) or node server.js (production)

Development

  • Start Queue using command adonis kue:listen
  • Start Scheduler using command adonis run:scheduler
  • Create new Redis listener adonis make:listener ListenerName
  • Create new Scheduler adonis make:task SchedulerName
  • Other Adonis help adonis --help

Production

  • Use pm2 to start the server, use command pm2 start pm2-config.yml. If only single instance using command pm2 start server.js.
  • Run Queue and Scheduler using supervisor:
    • Copy supervisor-adonis4.conf to /etc/supervisor/conf.d/<COPY HERE>.
    • Reread supervisor using command supervisorctl reread.
    • Update process group using command supervisorctl update.
    • Run Queue process using command supervisorctl start adonis4-queue:*.
    • Run Scheduler using command supervisorctl start adonis4-scheduler:*.

Links

Notes

  • Manage your NodeJS & NPM version, please use NVM (Node Version Manager) like n or nvm-windows for simplicity.

adonis4's People

Contributors

ahmadarif avatar jakesylvestre 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.