Giter Site home page Giter Site logo

backend-docker's Introduction

Backend Application:-

Backend Python Flask Application This repository contains the backend code for a Python Flask application. The application serves as the server-side component, handling requests and providing data to the frontend of the web application. It is built using the Flask framework, which is a lightweight and flexible web framework for Python.

Getting Started To get started with this backend application, follow the instructions below:

Services Involved:

cloud : AWS services: 1.EC2 2.RDS

Prerequisites

We are running this application on top of VM. So we need to launch an instance. Create a mysql database in rds Install all the dependencies which are mentioned in dependencies.sh file in this repo

Procedure

------>first we have to create an ec2 instance for Backend application

------>Create the database in rds and allow 3306 from backend instance sg 3306 -- backend-sg

Go through with the commands :

---->Connect to the instance

  1. yum install git -y

  2. git clone <'git url link'>

  3. cd <'foldername'>

  4. cd <'backend flodername'>

  5. sh dependencies.sh

---->After installing all the dependencies, connect with rds and create a table and then insert some values as your requirement,--for that follow the below commands

  1. mysql -h <'rds endpoint'> -u <'username'> -p <'password'>

  2. CREATE TABLE <'tablename'>( name VARCHAR(50) NOT NULL, roll INT NOT NULL, grade CHAR(1) NOT NULL );

  3. INSERT INTO <'tablename'>(name, roll, grade) VALUES ('leo hank', 103, 'A');

    INSERT INTO <'tablename'>(name, roll, grade) VALUES ('ram', 104, 'B');

    INSERT INTO <'tablename'>(name, roll, grade) VALUES ('devops', 105, 'B');

  4. \q ----to exit from the rds

configuration:

cofigure the application and give the rds creds i.e. host,username,password,db name
  1. vi properties.db----- update the dbname,host,username,password

  2. esc+:wq!-----command to save the file

Run the application:

 a. foreground------

 1)  python3 app.py

 b. background------

 2)  nohup python3 app.py &

backend-docker's People

Contributors

harinadhareddydevops 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.