revert to local hosting

This commit is contained in:
Ishaan Dey
2024-05-26 17:28:52 -07:00
parent 640c5c13df
commit fbb98ac3b0
22 changed files with 824 additions and 3890 deletions

View File

@ -1,8 +1,8 @@
const startercode = {
node: [
{ name: 'index.js', body: `console.log("Hello World!")` },
{ name: "index.js", body: `console.log("Hello World!")` },
{
name: 'package.json',
name: "package.json",
body: `{
"name": "nodejs",
"version": "1.0.0",
@ -19,7 +19,7 @@ const startercode = {
],
react: [
{
name: 'package.json',
name: "package.json",
body: `{
"name": "react",
"private": true,
@ -48,7 +48,7 @@ const startercode = {
}`,
},
{
name: 'vite.config.js',
name: "vite.config.js",
body: `import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
@ -56,14 +56,14 @@ import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
port: 3000,
port: 5173,
host: "0.0.0.0",
}
})
`,
},
{
name: 'index.html',
name: "index.html",
body: `<!doctype html>
<html lang="en">
<head>
@ -80,7 +80,7 @@ export default defineConfig({
`,
},
{
name: 'src/App.css',
name: "src/App.css",
body: `div {
width: 100%;
height: 100vh;
@ -108,7 +108,7 @@ button {
}`,
},
{
name: 'src/App.jsx',
name: "src/App.jsx",
body: `import './App.css'
import { useState } from 'react'
@ -133,7 +133,7 @@ export default App
`,
},
{
name: 'src/main.jsx',
name: "src/main.jsx",
body: `import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.jsx'
@ -146,6 +146,6 @@ ReactDOM.createRoot(document.getElementById('root')).render(
`,
},
],
};
}
export default startercode;
export default startercode