Skip to content

Commit

Permalink
Y2024
Browse files Browse the repository at this point in the history
  • Loading branch information
vprtsingh committed Sep 7, 2024
1 parent bf3d18c commit 44cafe2
Show file tree
Hide file tree
Showing 87 changed files with 645 additions and 260 deletions.
67 changes: 0 additions & 67 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -528,46 +528,6 @@ <h2 class="title" style="margin-top: 60px;">2. Library Boilerplates</h2>
</tbody>
</table>


<h2 class="title" style="margin-top: 60px;">3. Modules</h2>
<p>Discover a collection of sample projects, organized by technology, to help you quickly implement
specific features or functionalities in your applications.</p>
<table class="table table-dark">
<thead>
<tr>
<th scope="col">SN.</th>
<th scope="col">Modules</th>
<th scope="col">Download</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td><a target="_blank" href="#" style="color: #fff;">Stripe Subscription Module With NodeJS
& ReactJS</a>
</td>
<td>
<a
href="https://github.com/mernjs/create-mern-app/raw/master/templates/library/javascript-library-boilerplate.zip">
<img alt="npm"
src="https://custom-icon-badges.herokuapp.com/badge/-Download-blue?style=for-the-badge&logo=download&logoColor=white">
</a>
</td>
</tr>
<tr>
<th scope="row">2</th>
<td><a target="_blank" href="#" style="color: #fff;">ReactJS Firebase Auth Module</a></td>
<td>
<a
href="https://github.com/mernjs/create-mern-app/raw/master/templates/library/reactjs-library-boilerplate.zip">
<img alt="npm"
src="https://custom-icon-badges.herokuapp.com/badge/-Download-blue?style=for-the-badge&logo=download&logoColor=white">
</a>
</td>
</tr>
</tbody>
</table>

<h2 class="title" style="margin-top: 60px;">4. Code Snippets</h2>
<p>Explore a collection of reusable code snippets to quickly implement common features and
functionalities in your projects.</p>
Expand Down Expand Up @@ -595,33 +555,6 @@ <h2 class="title" style="margin-top: 60px;">4. Code Snippets</h2>
</tbody>
</table>

<h2 class="title" style="margin-top: 60px;">5. Projects</h2>
<p>Explore fully-featured sample projects that showcase best practices and efficient coding techniques
across various technologies.</p>
<table class="table table-dark">
<thead>
<tr>
<th scope="col">SN.</th>
<th scope="col">Modules</th>
<th scope="col">Download</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td><a target="_blank" href="#" style="color: #fff;">Instagram Clone - MERN</a>
</td>
<td>
<a
href="https://github.com/mernjs/create-mern-app/raw/master/templates/library/javascript-library-boilerplate.zip">
<img alt="npm"
src="https://custom-icon-badges.herokuapp.com/badge/-Download-blue?style=for-the-badge&logo=download&logoColor=white">
</a>
</td>
</tr>
</tbody>
</table>


</div>
</section>
Expand Down
28 changes: 24 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,30 @@
"description": "The MERN App provides a versatile set of boilerplates that streamline the development process for various applications. Whether you're building a web app, mobile app, desktop app, Chrome extension, or an NPM package in JavaScript, our comprehensive templates will help you get started quickly and efficiently.",
"scripts": {
"deploy": "sh publish.sh",
"app-upgrade": "sh app-upgrade.sh",
"app-stop": "sh app-stop.sh",
"library-upgrade": "sh library-upgrade.sh",
"library-stop": "sh library-stop.sh"
"app-clean": "sh scripts/app/sh-cleanup-projects.sh",
"app-install": "sh scripts/app/sh-install-projects.sh",
"app-start": "sh scripts/app/sh-start-projects.sh",
"app-stop": "sh scripts/app/sh-stop-projects.sh",
"app-upgrade": "sh scripts/app/sh-upgrade-projects.sh",
"app-zip": "sh scripts/app/sh-zip-projects.sh",
"library-clean": "sh scripts/library/sh-cleanup-projects.sh",
"library-install": "sh scripts/library/sh-install-projects.sh",
"library-start": "sh scripts/library/sh-start-projects.sh",
"library-stop": "sh scripts/library/sh-stop-projects.sh",
"library-upgrade": "sh scripts/library/sh-upgrade-projects.sh",
"library-zip": "sh scripts/library/sh-zip-projects.sh",
"packages-clean": "sh scripts/packages/sh-cleanup-projects.sh",
"packages-install": "sh scripts/packages/sh-install-projects.sh",
"packages-start": "sh scripts/packages/sh-start-projects.sh",
"packages-stop": "sh scripts/packages/sh-stop-projects.sh",
"packages-upgrade": "sh scripts/packages/sh-upgrade-projects.sh",
"packages-zip": "sh scripts/packages/sh-zip-projects.sh",
"snippets-clean": "sh scripts/snippets/sh-cleanup-projects.sh",
"snippets-install": "sh scripts/snippets/sh-install-projects.sh",
"snippets-start": "sh scripts/snippets/sh-start-projects.sh",
"snippets-stop": "sh scripts/snippets/sh-stop-projects.sh",
"snippets-upgrade": "sh scripts/snippets/sh-upgrade-projects.sh",
"snippets-zip": "sh scripts/snippets/sh-zip-projects.sh"
},
"author": "Vijay Pratap Singh <[email protected]> (https://mernjs.github.io/create-mern-app)",
"license": "MIT",
Expand Down
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions scripts/app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "app",
"version": "1.0.0",
"scripts": {
"clean-dev": "sh sh-cleanup-projects.sh",
"install-dev": "sh sh-install-projects.sh",
"start-dev": "sh sh-start-projects.sh",
"stop-dev": "sh sh-stop-projects.sh",
"upgrade-dev": "sh sh-upgrade-projects.sh",
"zip-dev": "sh sh-zip-projects.sh"
}
}
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
#!/bin/bash

# List of project directories
projects=(
"electronjs-boilerplate"
"expo-boilerplate"
"fastifyjs-mongodb-boilerplate"
"fastifyjs-mysql-boilerplate"
"gatsbyjs-boilerplate"
"nextjs-boilerplate"
"nodejs-mongodb-boilerplate"
"nodejs-mysql-boilerplate"
"react-native-boilerplate"
"reactjs-boilerplate"
"reactjs-chrome-extension-boilerplate"
"reactjs-webpack-boilerplate"
"t3js-boilerplate"
)
# Define the parent directory where all project directories are located
parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/app"

# Use find to get a list of project directories dynamically (1 level deep)
projects=($(find "$parent_directory" -maxdepth 1 -type d -not -name ".*"))

# Loop through each project directory and remove specified files/folders
for project in "${projects[@]}"; do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
#!/bin/bash

# List of project directories
projects=(
"expressjs-library-boilerplate"
"javascript-library-boilerplate"
"nextjs-library-boilerplate"
"nodejs-library-boilerplate"
"react-native-library-boilerplate"
"reactjs-library-boilerplate"
)
# Define the parent directory where all project directories are located
parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/app"

# Use find to get a list of project directories dynamically (1 level deep)
projects=($(find "$parent_directory" -maxdepth 1 -type d -not -name ".*"))

# Loop through each project directory and run yarn install
for project in "${projects[@]}"; do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
#!/bin/bash

# List of project directories
projects=(
"expressjs-library-boilerplate"
"javascript-library-boilerplate"
"nextjs-library-boilerplate"
"nodejs-library-boilerplate"
"react-native-library-boilerplate"
"reactjs-library-boilerplate"
)
# Define the parent directory where all project directories are located
parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/app"

# Use find to get a list of project directories dynamically (1 level deep)
projects=($(find "$parent_directory" -maxdepth 1 -type d -not -name ".*"))

# Create logs and pids directories if they don't exist
mkdir -p logs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
#!/bin/bash

# List of project directories
projects=(
"expressjs-library-boilerplate"
"javascript-library-boilerplate"
"nextjs-library-boilerplate"
"nodejs-library-boilerplate"
"react-native-library-boilerplate"
"reactjs-library-boilerplate"
)
# Define the parent directory where all project directories are located
parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/app"

# Use find to get a list of project directories dynamically (1 level deep)
projects=($(find "$parent_directory" -maxdepth 1 -type d -not -name ".*"))

# Loop through each project directory and stop the servers
for project in "${projects[@]}"; do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
#!/bin/bash

# List of project directories
projects=(
"expressjs-library-boilerplate"
"javascript-library-boilerplate"
"nextjs-library-boilerplate"
"nodejs-library-boilerplate"
"react-native-library-boilerplate"
"reactjs-library-boilerplate"
)
# Define the parent directory where all project directories are located
parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/app"

# Use find to get a list of project directories dynamically (1 level deep)
projects=($(find "$parent_directory" -maxdepth 1 -type d -not -name ".*"))

# Loop through each project directory and run the upgrade command
for project in "${projects[@]}"; do
Expand Down
34 changes: 34 additions & 0 deletions scripts/app/sh-zip-projects.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash

# Define the parent directory where all project directories are located
parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/app"

# Define the directory where the zip files will be stored
zip_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/zip/app"

# Create the zip directory if it doesn't exist
mkdir -p "$zip_directory"

# Use find to get a list of project directories dynamically (1 level deep)
projects=($(find "$parent_directory" -maxdepth 1 -type d -not -name ".*"))

# Loop through each project directory to remove existing zip files and create new ones
for project in "${projects[@]}"; do
# Get the project name from the full path
project_name=$(basename "$project")

# Define the zip file name in the new directory
zip_file="$zip_directory/${project_name}.zip"

# Check if the zip file exists and remove it
if [ -f "$zip_file" ]; then
echo "Removing existing zip file $zip_file"
rm "$zip_file"
fi

# Create a new zip file for the project directory
echo "Creating zip file for $project"
zip -r "$zip_file" "$project"
done

echo "Zip files have been created in $zip_directory for all projects."
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions scripts/library/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "library",
"version": "1.0.0",
"scripts": {
"clean-dev": "sh sh-cleanup-projects.sh",
"install-dev": "sh sh-install-projects.sh",
"start-dev": "sh sh-start-projects.sh",
"stop-dev": "sh sh-stop-projects.sh",
"upgrade-dev": "sh sh-upgrade-projects.sh",
"zip-dev": "sh sh-zip-projects.sh"
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
#!/bin/bash

# List of project directories
projects=(
"expressjs-library-boilerplate"
"javascript-library-boilerplate"
"nextjs-library-boilerplate"
"nodejs-library-boilerplate"
"react-native-library-boilerplate"
"reactjs-library-boilerplate"
)
# Define the parent directory where all project directories are located
parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/library"

# Use find to get a list of project directories dynamically (1 level deep)
projects=($(find "$parent_directory" -maxdepth 1 -type d -not -name ".*"))

rm -rf react-native-library-boilerplate/example/node_modules

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
#!/bin/bash

# List of project directories
projects=(
"electronjs-boilerplate"
"expo-boilerplate"
"fastifyjs-mongodb-boilerplate"
"fastifyjs-mysql-boilerplate"
"gatsbyjs-boilerplate"
"nextjs-boilerplate"
"nodejs-mongodb-boilerplate"
"nodejs-mysql-boilerplate"
"react-native-boilerplate"
"reactjs-boilerplate"
"reactjs-chrome-extension-boilerplate"
"reactjs-webpack-boilerplate"
"t3js-boilerplate"
)
# Define the parent directory where all project directories are located
parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/library"

# Use find to get a list of project directories dynamically (1 level deep)
projects=($(find "$parent_directory" -maxdepth 1 -type d -not -name ".*"))

# Loop through each project directory and run yarn install
for project in "${projects[@]}"; do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
#!/bin/bash

# List of project directories
projects=(
"electronjs-boilerplate"
"expo-boilerplate"
"fastifyjs-mongodb-boilerplate"
"fastifyjs-mysql-boilerplate"
"gatsbyjs-boilerplate"
"nextjs-boilerplate"
"nodejs-mongodb-boilerplate"
"nodejs-mysql-boilerplate"
"react-native-boilerplate"
"reactjs-boilerplate"
"reactjs-chrome-extension-boilerplate"
"reactjs-webpack-boilerplate"
"t3js-boilerplate"
)
# Define the parent directory where all project directories are located
parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/library"

# Use find to get a list of project directories dynamically (1 level deep)
projects=($(find "$parent_directory" -maxdepth 1 -type d -not -name ".*"))

# Create logs and pids directories if they don't exist
mkdir -p logs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
#!/bin/bash

# List of project directories
projects=(
"electronjs-boilerplate"
"expo-boilerplate"
"fastifyjs-mongodb-boilerplate"
"fastifyjs-mysql-boilerplate"
"gatsbyjs-boilerplate"
"nextjs-boilerplate"
"nodejs-mongodb-boilerplate"
"nodejs-mysql-boilerplate"
"react-native-boilerplate"
"reactjs-boilerplate"
"reactjs-chrome-extension-boilerplate"
"reactjs-webpack-boilerplate"
"t3js-boilerplate"
)
# Define the parent directory where all project directories are located
parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/library"

# Use find to get a list of project directories dynamically (1 level deep)
projects=($(find "$parent_directory" -maxdepth 1 -type d -not -name ".*"))

# Loop through each project directory and stop the servers
for project in "${projects[@]}"; do
Expand Down
Loading

0 comments on commit 44cafe2

Please sign in to comment.