1.0.61 • Published 4 years ago

toolbox-api v1.0.61

Weekly downloads
11
License
WTFPL
Repository
github
Last release
4 years ago

Toolbox API

A simple toolbox to build your API without much magic.


Example

TODO: ...

You could also use the utils directly, this is a toolbox not something opinionated on which you should be restrained.

Development

Install

  1. Install Node.js
  2. On the CLI, run npm install -g typescript (this will help with some modules)
  3. On the CLI, on the project folder run npm install --save toolbox-api

Run documentation

To run the documentation

npm run start-docs

General working guide

Working with the config

default.json is the first file imported and as per name has all the defaults of the application. After loading this file, the system will load the file with the name of the NODE_ENV. If you have NODE_ENV=production then production.json will be loaded on top of the default configuration.

To setup a config, you should follow the instructions from node-config. When you initialize the config module, you can also pass an extension interface for the config.

Create a new service

For you to be able to add a new service follow these steps:

TODO: ...

Routing

TODO: ...

Using the logger

You shouldn't use console.* because these can't be treated / parsed or go to a file for example. For this reason, a logger exists.

TODO: ...
1.0.61

4 years ago

1.0.60

4 years ago

1.0.59

4 years ago

1.0.58

4 years ago

1.0.57

4 years ago

1.0.55

4 years ago

1.0.56

4 years ago

1.0.53

4 years ago

1.0.52

4 years ago

1.0.51

5 years ago

1.0.50

5 years ago

1.0.49

5 years ago

1.0.48

5 years ago

1.0.47

5 years ago

1.0.46

5 years ago

1.0.45

5 years ago

1.0.44

5 years ago

1.0.43

5 years ago

1.0.42

5 years ago

1.0.41

5 years ago

1.0.40

5 years ago

1.0.39

5 years ago

1.0.38

5 years ago

1.0.37

5 years ago

1.0.36

5 years ago

1.0.35

5 years ago

1.0.34

5 years ago

1.0.33

5 years ago

1.0.32

5 years ago

1.0.31

5 years ago

1.0.30

5 years ago

1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago