Skip to content

deepanshu-yadav/devopsprojects23

Repository files navigation

Introduction

This project runs a nodejs application and uses mongodb as database. It has an API that performs the CRUD operations by interacting with database. It creates a product , updates a product, get a single and all products and deletes a product.

Look at the file to know about schema of a product.

Local Setup

Follow the following steps if you want to run this app on your local machine.

Install Node and NPM

Install npm from here and node here.

Install mongodb

Install mongo db from here.

Build the application

Build the application using npm install.

Run the application

Ensure mongodb is running. You can test using mongo db compass. This is the connection string mongodb://localhost:27017/.

After that run node server.js

Now go to browser and type localhost:3000 or localhost:3000/blog

Running the tests

Follow the README of tests if you want to know about tests. Use npm test to run the test.

CI with GitHub Actions

Push something in some branch raise a pull request in the repository. You will see the tests being executed in the actions section.

Like this

alt text

Docker

For docker follow this README.md.

Kubernetes

For kubernetes follow this README.md.

Vagrant and Ansible

For vagrant and ansible follow this README.md.

Istio

For istio follow this README.md.

Monitoring

For monitoring follow this README.md.

About

Simple CRUD API with all devops tools on it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages