/spikeAPI

simple mysql nodejs api

Primary LanguageJavaScriptISC LicenseISC

spike API

The spike api is designed to be a very light, fast and above all else simple api. Easy for individuals of any skill level to use.

Outline
├── app/
│   ├── asky.js - authorization\permission configuration
│   ├── index.js - entry point for API
|   |
│   ├── models/
│   │   ├── connections.js - Database loader for models
│   │   └── *.js - database definition files
|   |
│   └── views/
│       ├── genericRoutes.js - generic REST endpoints with simple permission schema 
│       └── *.js - API/Controller endpoints
|
├── public/ - static file folder
├── uploads/ - upload folder
└── logs/ - contain log files

setting environments

  • windows set NODE_ENV=production

Building your APP

app/

Your application lives in the app/ directory in this directory. Starting in the index.js. From here you create

Troubleshooting

forbidden

ensure that the requesting url is listed in the config hosts