npx @igojs/server create myproject
cd myproject
npm install
npm start
Open http://localhost:3000 and start coding.
The configuration is located in /app/config.js and initialized at startup:
const config = require('@igojs/server').config;
Environment variables can be defined in a .env file (loaded via dotenv):
MYSQL_DATABASE=mydatabase
REDIS_HOST=localhost
myproject/
├── app/
│ ├── config.js # Configuration
│ ├── routes.js # Route definitions
│ ├── controllers/ # Request handlers
│ ├── models/ # Database models
│ └── helpers.js # View helpers
├── views/ # Dust templates
├── public/ # Static assets
├── sql/ # Database migrations
├── locales/ # i18n translations
├── test/ # Test files
└── .env # Environment variables