Skip to content

razorops-public/nodejs-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Razorops CI/CD pipeline demo with NodeJS

If you have forked this repo, then connect with Razorops to create your demo pipeline by following the below button

Connect

This is an example code to demonstrate how to create NodeJS based pipeline on Razorops.

It's a simple API written in Express framework in NodeJS and includes a test suite.

Local Setup

  1. Use npm to install the dependencies -

     npm install
    
  2. To start the server in development mode run -

     npm start
    

Execute tests

Run following commands to execute the test suite -

    npm test

CI/CD pipeline

If you're new to Razorops, feel free to fork this repository and use it to create a project.

.razorops.yaml contains the pipeline code to build and execute the tests for this project. To know more about how to write and customize, refer to the documentation. Here is the link of the pipeline workflows page.

Recommended links

  • This example uses the Ubuntu based Linux-VM build envirement, which has a subset of python versions available. If you want to customize version, you can use Docker based build envioronment. For more details, please refer to "Choose NodeJS version"
  • How to integrate Junit reports with Razorops.
  • How to cache dependencies to speed-up the workflow.

License

Copyright (c) 2024 Razorops LLC

Distributed under the MIT License. See the file LICENSE.md.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •