IDwall API Boilerplate
At IDwall, one of our main project is an API that is used by our customers to interact with their data.
This boilerplate always changes based on decisions we make over time, thats why we're always developing and improving it, so any suggestions would be appreciated.
Dockerfile
ready for production- Development environment with
docker-compose
- Live reload
- Separated build & run scripts
- Linting
- Clean implementation and code structure
- Dependency injection
- Decorators for route configuration
- Example database service interface & implementation
- YAML configurations
- Any setting can be replaced through environment variables
This project is intended to be used as a base for your own projects. How you'll be doing this is completely up to you. Some people prefer to fork the project while others prefer just copying its contents to a new repository and working from there.
There's a Dockerfile that will do pretty much all you need to get a container ready for production. If you don't use docker, you'll need to execute several steps to get the project ready to launch, but we do recommend using docker and docker-compose for development your development environment since there are several advantages in doing so.
If you still want to use it without docker, here's the basic steps to get the project running:
git clone https://github.com/idwall/api-to.git
cd api-to
npm install -g typescript
npm install
tsc
node index
MIT License
Copyright (c) 2017 IDwall
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.