GithubHelp home page GithubHelp logo

shanker1407 / react_django_demo_app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rejanirajesh/react_django_demo_app

0.0 0.0 0.0 512 KB

A demo app for React and Django Deployment

JavaScript 47.29% Python 31.41% CSS 4.80% HTML 16.01% Dockerfile 0.50%

react_django_demo_app's Introduction

react_django_demo_app

A demo app for React and Django Deployment

  • Fork this repository
  • Run 'ssh-keygen' to generate SSH key-pair.
  • Add 'id_rsa.pub' to Github Settings --> SSH and GPG keys. Select key type as "Authentication keys"

Configuring Jenkins

  • Select New Item
  • Add name of the item and select Freestyle project
  • In the Configure page, add github url.
  • In SCM, add github url, repository branch and in credentials, add private key.
  • Under "Build Trigger" select "GitHub hook trigger for GITScm pollling".
  • Under "Build Steps"ย , select "Execute Shell" and add an echo statement and click "Save".

Configuring Jenkins webhook in github

  • In your git repository, go to "settings" and then "Webhooks".
  • Click "Add webhook" button. The payload url will be "http:///github-webhook/". Click on Add webhook.

Build the project

  • Go to your jenkins dashboard, Configure --> Build Steps --> Execute shell.
  • Add the following commands: 'docker-compose down' 'docker-compose up -d'
  • Save and build the project.
  • Verify whether build is successful.
  • Browse public IP address with port 8001

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.