Coder Social home page Coder Social logo

ssajv's Introduction

SQL SERVER Agent Job Viewer

a REST API and UI for SQL Server Agent Jobs with Express and React

Installation

1. API Server Installation

  1. Change directory to webapi folder and install packages with npm install command.
  2. Change name of .env.example file to .env and edit .env file to set api server port, database and web ui information.
  3. Start server with "npm start" (for development mode "npm run dev").
  4. If everything is correct, on console, you will get messages as follows:
    Server is running on Port:[PORT_NUMBER]
     DB Connection Successfull!
    

5.If you get these messages, you can try on your browser to connect the API server with available api server routes.

2. WebUI Installation

  1. Change directory to webui folder and install packages with npm install or yarn install command.
  2. By default logo is react's own logo, if you want to change it, you replace logo192.png file in /webui/public directory.
  3. By default, port is 3001, if you want change this, in Windows SET PORT=[PORT_NUMBER] and in linux "export PORT=[PORT_NUMBER] command will change port number. But if you change the port, you have build the application again for production mode with npm build or yarn build command.
  4. Start server with serve -s build (or for development mode npm start or yarn start) command

API Server Routes

Route Description
/api/jobs returns all jobs from sysjob table
/api/jobs/details returns all jobs with their activity, history, steps, servers, schedules data
/api/job/:id returns only job data from sysjob table by job_id ( :id part of url should be replaced with job_id )
/api/job/:id/details returns selected job by job_id and its activity, history, steps, servers, schedules data
/api/job/name/:name returns only job data from sysjob table by name (job name)
/api/job/name/:name/details returns both job data from sysjob table by name (job name) and its activity, history, steps, servers, schedules data
/api/steps returns all steps data from sysjobsteps table
/api/activity returns all activity data from sysjobactivity table
/api/schedules returns all schedule data from sysjobschedules table
/api/schedules/details returns all schedule data with related job data(by job_id) from sysjobschedules and sysjob table
/api/history returns all history data from sysjobhistory table
/api/servers returns all server data from sysjobservers table
/api/servers/details returns server data by server_id and jobs that is run in that server
/api/server/:id returns only server data from sysjobserver table by server_id
/api/server/:id/details returns server data by server_id and both jobs that is run in that server and details of the jobs
/api/server/name/:name returns server data by originating_server
/api/server/name/:name/details returns server data by originating_server and both jobs that is run in that server and details of the jobs

License

This is an open-sourced software licensed under the MIT license.

Dependencies

WebUI

WebAPI

General

ssajv's People

Contributors

bytekatana avatar dependabot[bot] avatar

Watchers

 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.