AdonisJs Server.
- Node.js >= 8.0.0
- npm >= 3.0.0
- Docker
- git
Clone the repository.
git clone https://github.com/apquinit/adonisjs-server && cd adonisjs-serverInstall AdonisJs.
npm install -g @adonisjs/cliInstall dependencies.
npm installCopy .env file.
cp .env.example .envGenerate application key.
adonis key:generateStart container.
docker-compose upStop container.
docker-compose downRun migrations.
adonis migration:runRun linter.
npm run lintRun tests.
npm run testRun build.
node ace build --productionThe 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