Skip to content

Instantly share code, notes, and snippets.

View lmas3009's full-sized avatar
🏡
Working from home

Aravind Kumar Vemula lmas3009

🏡
Working from home
View GitHub Profile
@lmas3009
lmas3009 / app.js
Created January 31, 2021 14:14
A Simple MERN Full Stack Application
import './App.css';
import { Link, browserHistory, IndexRoute, BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import Home from './Home'
import AddDetails from './AddDetails'
function App() {
return (
<div>
@lmas3009
lmas3009 / Home.js
Created January 31, 2021 14:17
A Simple MERN Full Stack Application
import Navbar from './Navbar'
import Main from './Main'
import { Link, browserHistory, IndexRoute, BrowserRouter as Router, Route, Switch } from 'react-router-dom';
function Home() {
return (
<div className="App">
<Router browserHistory>
<Navbar />
@lmas3009
lmas3009 / Navbar.js
Created January 31, 2021 14:20
A Simple MERN Full Stack Application
function Navbar() {
return (
<div className="navbar">
<div className="right">
<ul>
<li>
MERN STACK DEVELOPMENT
</li>
</ul>
</div>
@lmas3009
lmas3009 / Main.js
Last active January 31, 2021 16:14
A Simple MERN Full Stack Application
import React, { useState, useEffect } from 'react';
import axios from 'axios'
function Main() {
const [data,setdata] = useState([])
useEffect(() => {
async function fetchData() {
const res = await axios.get("https://user-details-mern.herokuapp.com/details")
@lmas3009
lmas3009 / AddDetails.js
Last active March 11, 2022 03:48
A Simple MERN Full Stack Application
import React from 'react';
import axios from 'axios'
import { Link, browserHistory, IndexRoute, BrowserRouter as Router, Route, Switch } from 'react-router-dom';
function AddDetails() {
const handleSubmit = (e) => {
e.preventDefault();
var number = e.target.tel.value
if (number.length == 10) {
@lmas3009
lmas3009 / App.css
Created January 31, 2021 14:44
A Simple MERN Full Stack Application
.root {
margin: 0px;
padding: 0px;
}
.App {
width: 100%;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
@lmas3009
lmas3009 / main.py
Created February 17, 2021 13:00
Flask CRUD Operations
from flask import *
app = Flask(__name__)
@app.route("/")
def index():
return "<h1>Welcome to the tutorial of Flask CRUD Operations</h1>"
if __name__ == "__main__":
app.run(debug=True)
@lmas3009
lmas3009 / createtable.py
Created February 17, 2021 13:09
Flask CRUD Operations
import pymysql as Mysql
mydb = Mysql.connect(host="localhost",user="root",password="",database="crudflask")
mycursor = mydb.cursor()
mycursor.execute("CREATE TABLE userinfo(Id INT NOT NULL AUTO_INCREMENT,Name CHAR(20),EmailId Char(30),Gender Char(7),Age CHAR(10), ClgName CHAR(40),PRIMARY KEY (Id))")
@lmas3009
lmas3009 / index.html
Created February 17, 2021 13:17
Flask CRUD Operations
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CRUD-Flask</title>
<style>
@lmas3009
lmas3009 / index.html
Last active March 28, 2022 10:53
Deploy Web app in AWS Blog
<!DOCTYPE html>
<html>
<body>
<h1>Welcome to AWS cloud</h1>
<h2>This is testing page</h2>
On how to deploy web application in aws cloud. Follow the link given below
</br>
</br>