Giter VIP home page Giter VIP logo

jxpress's Introduction

Documentation

Installation

$ sudo npm i

use --unsafe-perm parameter on the above command if you find any permission issue

Running The Application

Run with the command

$ node bootstrap.js

Using 'nodemon'

$ nodemon bootstrap.js -w

if you do not want to restart the sedrver upon modifing the code then do not use -w after the command

Using specific PORT number

$ node bootstrap.js --port {PORT} $ nodemon bootstrap.js --port {PORT} -w

Replace {PORT} with your specified port number.

Database connectivity

Find datastore.js in the following path app/release/**{your_release_no}**/config/datastore.js

create your database connecttion here as default and set activeConnection for each of the environment (dev/prod/qa/staging)

Setting JWT key

Find globals.js in the following path app/release/**{your_release_no}**/config/globals.js and set your public and private keys here

Default PORT

Port 3100 is default port for this application

API endpoints will be

http://localhost:{**port_specified or 3100**}/{release_number}/{name_of_the_endpoint_file_without_js_extension}/{endpoint}

eg. http://localhost:3100/initial/user/login

jxpress's People

Contributors

jayantaweavers avatar

Stargazers

Avik Singha avatar

Watchers

 avatar

jxpress's Issues

Autoid generation enhancement

There is a possibility, though very rare of having same value in place of milliseconds if deployed in multi-server environment.
I think it would be good to append some extra random number with the ID to avoid the issue.
So basically autoid.gen.js code will look like

const Autoidmodule= {
    autogenerateId:(request,callback)=>{
        console.log(request)
        var milliseconds = new Date().getTime();
        const finalId=request+milliseconds+Math.floor(10000 + Math.random() * 90000).toString();
        callback(null,finalId)
    },
}

module.exports = Autoidmodule;

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.