Code Monkey home page Code Monkey logo

cw-todo-app's Introduction

cw-todo-app

image

This project aims to create a Jenkins pipeline to deploy web-page written Nodejs and React Frameworks on AWS Cloud Infrastructure using Ansible.

Building infrastructure process is managed with control node utilizing Ansible. This infrastructure has 1 Jenkins Server (Amazon Linux 2 AMI) as Ansible Control Node and 3 EC2's as worker node (Red Hat Enterprise Linux 8 with High Availability).

These EC2's will be launched on AWS console. Web-page has 3 main components which are Postgresql, Nodejs, and React. Each component is serving in Docker container on EC2s dedicated for them.

Postgresql is serving as Database of web-page. Nodejs controls backend part of web-side and react controls frontend side of web-page. The Web Application will be deployed using Nodejs and React framework and should be accessible via web browser from anywhere on port 3000.

In my case; first of all I launched Jenkins Server with security group allowing SSH (port 22) and HTTP (ports 80, 8080) connections. After that, I have followed the steps indicate below:

  • Create infrastructure with Terraform,
  • Create an image repository on ECR for the app,
  • Build the application Docker image and push it to the same ECR repository with different tags,
  • Deploy the application on AWS EC2's with Ansible,
  • Make a failure stage and ensure to destroy infrastructure, ECR repo and docker images when the pipeline failed.

I used Jenkins Pipeline for building, testing, deploying and facilitating continuous integration and continuous delivery. Terraform and Ansible for infrastructure provisioning, configuration management and automation.

jenkins-pipeline

reactsite

cw-todo-app's People

Contributors

victordickson avatar zolabest 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.