Giter Site home page Giter Site logo

smartcow's Introduction

# Running the Application with Docker Compose

## Prerequisites

- Docker

- Docker Compose


####Python Backend####

for python i have created following files

1. app.py

2. requirements.txt

3. Dockerfile


1.using command "docker build -t pythonimage ." created python image

2.using command "docker run -p 80:8000 -v $(pwd):/app -- name pythonapp pythonimage" 

exposed to port 8000 and it is working fine.



###React Frontend ###

i used follwing commands to create sys-stats directory

1. npm install -g create-react-app

2. create-react-app sys-stats

3. npm install axios



#created Dockerfile for Reactapp to create image and spin-up with container

edited App.js file and reactapp is working fine

#in src folder created stats.js file for stats of cpuusage and memUsage

check files in folder src.

using command

1.docker build -it reactimage . -created docker image 

2.docker run -d -p 3000:3000 --name Reactapp reactimage - created continer and reactapp is running in localhost:3000

insatlled nginx reverse proxy using dockerfile 

###Deployment ###

1.using terraform created instance in aws cloud

also provided user data for the instance

2.by ssh into the server, performed below tasks

1.installed minikube 

2.written deployment.yml file for production 

done with deployment of app

3. Open your browser and go to http://localhost:90






smartcow's People

Contributors

vinod-assignment 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.