Code Monkey home page Code Monkey logo

api-dev-viralworks's Introduction

ViralWorks - API Framework Information

This is my API Framework which apply ExpressJS

Technologies:

  • NodeJS
  • TypeScript
  • Swagger UI
  • OpenAPI Validation

Dependencies:

  • Node version: v10.15.3
  • NPM version: v6.4.1
  • Python: v2.x
  • node-gyp
  • Windows users will need the options for c# and c++ installed with their visual studio instance.

Usage:

Configuration

  • server.host in config.ts file (not recommended)
  • server.port in config.ts file (running port)
  • server.public in config.ts file (public IP or Domain)
  • env in config.ts file (Environment variable)
  • pepper in config.ts file (static string to hash password)

ENV Example

# Common
ENV=dev

# Server
SERVER_HOST=127.0.0.1
SERVER_PORT=8080
SERVER_PUBLIC_HOST=127.0.0.1
SERVER_PUBLIC_PORT=8080
SERVER_SCHEMA=http

# JWT
JWT_KEY="ViralWorks@2018#"
JWT_EXPIRE=2h

# Document
ENABLE_DOCUMENT=true

# Security
ENABLE_RBAC=true

# MongoDB V4
MONGO_HOST=206.189.82.47
MONGO_PORT=27017
MONGO_USERNAME=main_vw_v3
MONGO_PASSWORD="main_vw_v3@123"
MONGO_DB=main_vw_v3
MONGO_DEBUG=true

Running

Install

$ cd <path_of_project>
$ npm install --global node-gyp
$ npm install

API Service

Please follow my bellow progress:

$ cd <path_of_project>
$ npm start

CLI

Show command helper

$ cd <path_of_project>
$ ./command

Watching

To watch changed file and re-run server

$ cd <path_of_project>
$ npm run watch

Server address

Server will be run on: <schema>://<host_or_address>:<port>/<version>/

By default: http://127.0.0.1:8080/v1.0/

Document site

Document will be run on: <schema>://<host_or_address>:<port>/<version>/docs/

By default: http://127.0.0.1:8080/v1.0/docs/

Contact:

Powered by Daniel Huynh - [email protected]

api-dev-viralworks's People

Contributors

minhlp avatar karrot0195 avatar

Watchers

 avatar

Forkers

alone2016

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.