Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

cwiki/spikeAPI

Repository files navigation

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

About

simple mysql nodejs api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published