Git Product home page Git Product logo

newpki's Introduction

NewPKI deployment tool

Created in 2018, this application is setup on the needs from my job to do an automatic deployment. Its functionalities:

Upload the application package to install from a third party;
Deploy it on the first server of the cluster:
    Create backup
    Call a bash script with selected parameters from FE to deploy the package
    Restart the service/s on the Apache server
Display the deployment log on the main page with INFO/WARNING/ERROR tags
Call another bash script to make a mockup sync on the second server of the cluster
Call a bash script with given FE parameters to sync all the cluster and restart the needed services

The application relies on EJS for frontend and NodeJS / Express for backend. It is deployed on some automation server and talk to the application server through ssh.

Structure

The App.js sets up modules and create the server and the routing.

The Frontend is in the View directory:

  • partials: include header and footer
  • landing: the main frontend page
  • deploy and upload.js : testing pages for checking if routing was working correctly

The Backend is in the Routes directory:

  • index.js : backend for GETting the landing page; clears cache and collect logs to be shown
  • upload.js : use formidable and fs to upload the package from local to the server
  • loaded.js : check and show the files for the deployment parsed by extension, so that no other types of files can be selected by mistake
  • deploy.js : use the parameters from the FE page to call the scripts and do the backup/deploy the package + return the logs
  • sync.js : use the parameters from the FE page to call the scripts and do the mock and real sync on the cluster + return the logs
  • catchlog.js + synclog.js : parse the logs to be shown

newpki's People

Contributors

buaiscia avatar

Watchers

James Cloos avatar

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.