Clone this repo.
git clone https://github.com/ZNS-Connect/zns-api-core.git
install dependencies
npm install
To run locally for development
npm start
To build a bundled transpiled javascript app
npm run build
You should see the output in your terminal:
# npm start
> nodemon
[nodemon] 2.0.2
[nodemon] to restart at any time, enter `rs`
[nodemon] watching dir(s): src/**/* main.ts
[nodemon] watching extensions: ts
[nodemon] starting `ts-node ./main.ts`
Server running at: http://mypc.local:3000
Build the bundle: leveraging webpack, we can compile our code and bundle it together so you no longer need to maintain dependencies in production environment.
npm run bundle
Above script will produce dist
folder that contains your compiled application. you can now simply node ./dist/index.js
or use pm2
as your process manager pm2 start ./dist/index.js
For a devOps, you cannot ignore the contributions made by Docker to bring inner peace in their lives.
TODO: Docker deployment guide
In progress.
- Stop being lazy and move the kit to opensource.
- Configure basic structure
-
Typescript
-
@Hapi/hapi
v19 - LICENSE
- Folder structure
-
supertest
integration - Write Dockerfile
- Write docker-compose.yml file
- Write
FAQ
- Write
Features
- Configure
TravisCI
TODO: Features In progress.
TODO: FAQ In progress.
Use any of the following medium for support:
- Raise a ticket on github