Skip to content

apquinit/adonisjs-server

Repository files navigation

AdonisJs Server

AdonisJs Server.

Requirements

  • Node.js >= 8.0.0
  • npm >= 3.0.0
  • Docker
  • git

Development Setup

Clone the repository.

git clone https://github.com/apquinit/adonisjs-server && cd adonisjs-server

Install AdonisJs.

npm install -g @adonisjs/cli

Install dependencies.

npm install

Copy .env file.

cp .env.example .env

Generate application key.

adonis key:generate

Docker

Start container.

docker-compose up

Stop container.

docker-compose down

Migrations

Run migrations.

adonis migration:run

Linter

Run linter.

npm run lint

Tests

Run tests.

npm run test

Compile

Run build.

node ace build --production

The compiled output is written to the build folder. You can cd into this folder and start the server by directly running the server.js file. This is the recommended way to run the application in production.

cd build && node server.js

About

Template for AdonisJs projects

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors