Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shaikahmadnawaz committed Sep 11, 2023
0 parents commit c15a2ff
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# DevOps Journey

This repository documents my journey to gain a foundational knowledge of DevOps. I'm sharing my notes, resources, and experiences to inspire and assist others in learning DevOps. Whether you're a beginner or looking to deepen your understanding of DevOps, I hope you find something valuable here.

My primary goal is to attain a foundational knowledge of DevOps. By documenting my learning process and sharing my notes, I aim to:

- Inspire others to learn DevOps.
- Provide a resource for beginners.
- Engage with the DevOps community.
48 changes: 48 additions & 0 deletions Scripts/mern-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Create a new Vite React project
npm create vite@latest client -- --template react
cd client

# Install project dependencies
npm i

# Navigate to the parent directory
cd ..

# Create a new directory for the server
mkdir server
cd server

# Initialize a new npm project
npm init -y

# Add "type" field to package.json as "module"
npm config set type module

# Install Express.js as a server dependency
npm i express

# Create a server.js file and add the code
echo "import express from 'express';
const app = express();
const port = process.env.PORT || 5000; // Use the specified port or default to 5000
// Middleware to parse JSON request bodies
app.use(express.json());
// Define a sample route
app.get('/', (req, res) => {
res.send('Hello, World!');
});
// Start the server
app.listen(port, () => {
console.log(\`Server is running on port \${port}\`);
});" > server.js

# Navigate back to the parent directory
cd ..

# Create or append to .gitignore file
echo '*node_modules*' >> .gitignore
echo '*.env*' >> .gitignore

0 comments on commit c15a2ff

Please sign in to comment.