-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c15a2ff
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |