diff --git a/docs/index.html b/docs/index.html index 1fd5cdb8..8bd9930b 100755 --- a/docs/index.html +++ b/docs/index.html @@ -528,46 +528,6 @@

2. Library Boilerplates

- -

3. Modules

-

Discover a collection of sample projects, organized by technology, to help you quickly implement - specific features or functionalities in your applications.

- - - - - - - - - - - - - - - - - - - - -
SN.ModulesDownload
1Stripe Subscription Module With NodeJS - & ReactJS - - - npm - -
2ReactJS Firebase Auth Module - - npm - -
-

4. Code Snippets

Explore a collection of reusable code snippets to quickly implement common features and functionalities in your projects.

@@ -595,33 +555,6 @@

4. Code Snippets

-

5. Projects

-

Explore fully-featured sample projects that showcase best practices and efficient coding techniques - across various technologies.

- - - - - - - - - - - - - - - -
SN.ModulesDownload
1Instagram Clone - MERN - - - npm - -
- diff --git a/package.json b/package.json index ddf20348..b60c2003 100755 --- a/package.json +++ b/package.json @@ -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 (https://mernjs.github.io/create-mern-app)", "license": "MIT", diff --git a/src/scripts/app-stop.sh b/scripts/app-stop.sh similarity index 100% rename from src/scripts/app-stop.sh rename to scripts/app-stop.sh diff --git a/src/scripts/app-upgrade.sh b/scripts/app-upgrade.sh similarity index 100% rename from src/scripts/app-upgrade.sh rename to scripts/app-upgrade.sh diff --git a/scripts/app/package.json b/scripts/app/package.json new file mode 100644 index 00000000..72e36682 --- /dev/null +++ b/scripts/app/package.json @@ -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" + } +} \ No newline at end of file diff --git a/src/app/sh-cleanup-projects.sh b/scripts/app/sh-cleanup-projects.sh similarity index 79% rename from src/app/sh-cleanup-projects.sh rename to scripts/app/sh-cleanup-projects.sh index ce563f7c..9da3863f 100755 --- a/src/app/sh-cleanup-projects.sh +++ b/scripts/app/sh-cleanup-projects.sh @@ -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 diff --git a/src/library/sh-install-projects.sh b/scripts/app/sh-install-projects.sh similarity index 61% rename from src/library/sh-install-projects.sh rename to scripts/app/sh-install-projects.sh index 316e58ef..c84bff1f 100755 --- a/src/library/sh-install-projects.sh +++ b/scripts/app/sh-install-projects.sh @@ -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 diff --git a/src/library/sh-start-projects.sh b/scripts/app/sh-start-projects.sh similarity index 73% rename from src/library/sh-start-projects.sh rename to scripts/app/sh-start-projects.sh index 552069ba..4f40d5bf 100755 --- a/src/library/sh-start-projects.sh +++ b/scripts/app/sh-start-projects.sh @@ -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 diff --git a/src/library/sh-stop-projects.sh b/scripts/app/sh-stop-projects.sh similarity index 65% rename from src/library/sh-stop-projects.sh rename to scripts/app/sh-stop-projects.sh index 24952a31..05ccc599 100755 --- a/src/library/sh-stop-projects.sh +++ b/scripts/app/sh-stop-projects.sh @@ -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 diff --git a/src/library/sh-upgrade-projects.sh b/scripts/app/sh-upgrade-projects.sh similarity index 61% rename from src/library/sh-upgrade-projects.sh rename to scripts/app/sh-upgrade-projects.sh index d196520b..3e03423d 100755 --- a/src/library/sh-upgrade-projects.sh +++ b/scripts/app/sh-upgrade-projects.sh @@ -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 diff --git a/scripts/app/sh-zip-projects.sh b/scripts/app/sh-zip-projects.sh new file mode 100755 index 00000000..a9322609 --- /dev/null +++ b/scripts/app/sh-zip-projects.sh @@ -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." diff --git a/src/scripts/library-stop.sh b/scripts/library-stop.sh similarity index 100% rename from src/scripts/library-stop.sh rename to scripts/library-stop.sh diff --git a/src/scripts/library-upgrade.sh b/scripts/library-upgrade.sh similarity index 100% rename from src/scripts/library-upgrade.sh rename to scripts/library-upgrade.sh diff --git a/scripts/library/package.json b/scripts/library/package.json new file mode 100644 index 00000000..b3721c47 --- /dev/null +++ b/scripts/library/package.json @@ -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" + } +} \ No newline at end of file diff --git a/src/library/sh-cleanup-projects.sh b/scripts/library/sh-cleanup-projects.sh similarity index 85% rename from src/library/sh-cleanup-projects.sh rename to scripts/library/sh-cleanup-projects.sh index 86b0f282..001b1385 100755 --- a/src/library/sh-cleanup-projects.sh +++ b/scripts/library/sh-cleanup-projects.sh @@ -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 diff --git a/src/app/sh-install-projects.sh b/scripts/library/sh-install-projects.sh similarity index 52% rename from src/app/sh-install-projects.sh rename to scripts/library/sh-install-projects.sh index 44e77581..65fd53f3 100755 --- a/src/app/sh-install-projects.sh +++ b/scripts/library/sh-install-projects.sh @@ -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 diff --git a/src/app/sh-start-projects.sh b/scripts/library/sh-start-projects.sh similarity index 65% rename from src/app/sh-start-projects.sh rename to scripts/library/sh-start-projects.sh index 997ca618..a94f9943 100755 --- a/src/app/sh-start-projects.sh +++ b/scripts/library/sh-start-projects.sh @@ -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 diff --git a/src/app/sh-stop-projects.sh b/scripts/library/sh-stop-projects.sh similarity index 56% rename from src/app/sh-stop-projects.sh rename to scripts/library/sh-stop-projects.sh index 54cb8df3..52ab93bf 100755 --- a/src/app/sh-stop-projects.sh +++ b/scripts/library/sh-stop-projects.sh @@ -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 diff --git a/src/app/sh-upgrade-projects.sh b/scripts/library/sh-upgrade-projects.sh similarity index 51% rename from src/app/sh-upgrade-projects.sh rename to scripts/library/sh-upgrade-projects.sh index 53ea88c3..037cb4d9 100755 --- a/src/app/sh-upgrade-projects.sh +++ b/scripts/library/sh-upgrade-projects.sh @@ -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 the upgrade command for project in "${projects[@]}"; do diff --git a/scripts/library/sh-zip-projects.sh b/scripts/library/sh-zip-projects.sh new file mode 100755 index 00000000..aaf9ceaa --- /dev/null +++ b/scripts/library/sh-zip-projects.sh @@ -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/library" + +# Define the directory where the zip files will be stored +zip_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/zip/library" + +# 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." diff --git a/scripts/packages/package.json b/scripts/packages/package.json new file mode 100644 index 00000000..653f55b7 --- /dev/null +++ b/scripts/packages/package.json @@ -0,0 +1,12 @@ +{ + "name": "packages", + "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" + } +} \ No newline at end of file diff --git a/scripts/packages/sh-cleanup-projects.sh b/scripts/packages/sh-cleanup-projects.sh new file mode 100755 index 00000000..e0d6ea45 --- /dev/null +++ b/scripts/packages/sh-cleanup-projects.sh @@ -0,0 +1,77 @@ +#!/bin/bash + +# Define the parent directory where all project directories are located +parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/packages" + +# 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 + echo "Cleaning up $project" + + # Define the zip file name + zip_file="${project}.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" + else + echo "No zip file found for $project" + fi + + cd "$project" + + # Remove node_modules directory if it exists + if [ -d node_modules ]; then + echo "Removing node_modules from $project" + rm -rf node_modules + fi + + # Remove .next directory if it exists + if [ -d .next ]; then + echo "Removing .next from $project" + rm -rf .next + fi + + # Remove .cache directory if it exists + if [ -d .cache ]; then + echo "Removing .cache from $project" + rm -rf .cache + fi + + # Remove .expo-shared directory if it exists + if [ -d .expo-shared ]; then + echo "Removing .expo-shared from $project" + rm -rf .expo-shared + fi + + # Remove .expo directory if it exists + if [ -d .expo ]; then + echo "Removing .expo from $project" + rm -rf .expo + fi + + # Remove yarn.lock file if it exists + if [ -f yarn.lock ]; then + echo "Removing yarn.lock from $project" + rm yarn.lock + fi + + # Go back to the parent directory + cd .. +done + +# Remove logs and pids directories if they exist +if [ -d logs ]; then + echo "Removing logs directory" + rm -rf logs +fi + +if [ -d pids ]; then + echo "Removing pids directory" + rm -rf pids +fi + +echo "Cleanup completed for all projects." diff --git a/scripts/packages/sh-install-projects.sh b/scripts/packages/sh-install-projects.sh new file mode 100755 index 00000000..d63679aa --- /dev/null +++ b/scripts/packages/sh-install-projects.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +# Define the parent directory where all project directories are located +parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/packages" + +# 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 + echo "Installing dependencies in $project" + cd "$project" + + # Check if package.json exists + if [ -f package.json ]; then + # Run yarn install + yarn install + else + echo "package.json not found in $project" + fi + + # Go back to the parent directory + cd .. +done + +echo "Dependencies have been installed for all projects." diff --git a/scripts/packages/sh-start-projects.sh b/scripts/packages/sh-start-projects.sh new file mode 100755 index 00000000..3d0415b2 --- /dev/null +++ b/scripts/packages/sh-start-projects.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +# Define the parent directory where all project directories are located +parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/packages" + +# 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 +mkdir -p pids + +# Loop through each project directory and run yarn install +for project in "${projects[@]}"; do + echo "Starting project in $project" + + # Navigate to the project directory + cd "$project" + + # Check if package.json exists + if [ -f package.json ]; then + # Run yarn dev and log output to a file + (yarn dev > "../logs/$project.log" 2>&1 & echo $! > "../pids/$project.pid") + echo "$project started, logging to ../logs/$project.log, PID saved to ../pids/$project.pid" + else + echo "package.json not found in $project" + fi + + # Go back to the parent directory + cd .. +done + +# Wait for all background processes to finish +wait + +echo "Dev servers have been started for all projects." diff --git a/scripts/packages/sh-stop-projects.sh b/scripts/packages/sh-stop-projects.sh new file mode 100755 index 00000000..082b43e4 --- /dev/null +++ b/scripts/packages/sh-stop-projects.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# Define the parent directory where all project directories are located +parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/packages" + +# 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 + echo "Stopping project in $project" + + # Check if PID file exists + if [ -f "pids/$project.pid" ]; then + # Read the PID from the file and kill the process + PID=$(cat "pids/$project.pid") + kill $PID + echo "$project stopped, PID $PID killed" + + # Remove the PID file + rm "pids/$project.pid" + else + echo "PID file not found for $project" + fi +done + +echo "All dev servers have been stopped." diff --git a/scripts/packages/sh-upgrade-projects.sh b/scripts/packages/sh-upgrade-projects.sh new file mode 100755 index 00000000..68d920e1 --- /dev/null +++ b/scripts/packages/sh-upgrade-projects.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +# Define the parent directory where all project directories are located +parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/packages" + +# 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 + echo "Upgrading packages in $project" + cd "$project" + + # Check if package.json exists + if [ -f package.json ]; then + # Run the upgrade command + npm run upgrade + else + echo "package.json not found in $project" + fi + + # Go back to the parent directory + cd .. +done + +echo "All projects have been upgraded." diff --git a/scripts/packages/sh-zip-projects.sh b/scripts/packages/sh-zip-projects.sh new file mode 100755 index 00000000..53739e94 --- /dev/null +++ b/scripts/packages/sh-zip-projects.sh @@ -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/packages" + +# Define the directory where the zip files will be stored +zip_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/zip/packages" + +# 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." diff --git a/scripts/snippets/package.json b/scripts/snippets/package.json new file mode 100644 index 00000000..f8d19665 --- /dev/null +++ b/scripts/snippets/package.json @@ -0,0 +1,12 @@ +{ + "name": "snippets", + "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" + } +} \ No newline at end of file diff --git a/scripts/snippets/sh-cleanup-projects.sh b/scripts/snippets/sh-cleanup-projects.sh new file mode 100755 index 00000000..3b4d9f99 --- /dev/null +++ b/scripts/snippets/sh-cleanup-projects.sh @@ -0,0 +1,79 @@ +#!/bin/bash + +# Define the parent directory where all project directories are located +parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/snippets" + +# 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 + echo "Cleaning up $project" + + # Define the zip file name + zip_file="${project}.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" + else + echo "No zip file found for $project" + fi + + + cd "$project" + + + # Remove node_modules directory if it exists + if [ -d node_modules ]; then + echo "Removing node_modules from $project" + rm -rf node_modules + fi + + # Remove .next directory if it exists + if [ -d .next ]; then + echo "Removing .next from $project" + rm -rf .next + fi + + # Remove .next directory if it exists + if [ -d .cache ]; then + echo "Removing .cache from $project" + rm -rf .cache + fi + + # Remove .expo-shared directory if it exists + if [ -d .expo-shared ]; then + echo "Removing .expo-shared from $project" + rm -rf .expo-shared + fi + + # Remove .expo directory if it exists + if [ -d .expo ]; then + echo "Removing .expo from $project" + rm -rf .expo + fi + + # Remove yarn.lock file if it exists + if [ -f yarn.lock ]; then + echo "Removing yarn.lock from $project" + rm yarn.lock + fi + + # Go back to the parent directory + cd .. +done + +# Remove logs and pids directories if they exist +if [ -d logs ]; then + echo "Removing logs directory" + rm -rf logs +fi + +if [ -d pids ]; then + echo "Removing pids directory" + rm -rf pids +fi + +echo "Cleanup completed for all projects." diff --git a/scripts/snippets/sh-install-projects.sh b/scripts/snippets/sh-install-projects.sh new file mode 100755 index 00000000..a437e06a --- /dev/null +++ b/scripts/snippets/sh-install-projects.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +# Define the parent directory where all project directories are located +parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/snippets" + +# 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 + echo "Installing dependencies in $project" + cd "$project" + + # Check if package.json exists + if [ -f package.json ]; then + # Run yarn install + yarn install + else + echo "package.json not found in $project" + fi + + # Go back to the parent directory + cd .. +done + +echo "Dependencies have been installed for all projects." diff --git a/scripts/snippets/sh-start-projects.sh b/scripts/snippets/sh-start-projects.sh new file mode 100755 index 00000000..d83b54a5 --- /dev/null +++ b/scripts/snippets/sh-start-projects.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +# Define the parent directory where all project directories are located +parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/snippets" + +# 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 +mkdir -p pids + +# Loop through each project directory and run yarn install +for project in "${projects[@]}"; do + echo "Starting project in $project" + + # Navigate to the project directory + cd "$project" + + # Check if package.json exists + if [ -f package.json ]; then + # Run yarn dev and log output to a file + (yarn dev > "../logs/$project.log" 2>&1 & echo $! > "../pids/$project.pid") + echo "$project started, logging to ../logs/$project.log, PID saved to ../pids/$project.pid" + else + echo "package.json not found in $project" + fi + + # Go back to the parent directory + cd .. +done + +# Wait for all background processes to finish +wait + +echo "Dev servers have been started for all projects." diff --git a/scripts/snippets/sh-stop-projects.sh b/scripts/snippets/sh-stop-projects.sh new file mode 100755 index 00000000..1dafc432 --- /dev/null +++ b/scripts/snippets/sh-stop-projects.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# Define the parent directory where all project directories are located +parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/snippets" + +# 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 + echo "Stopping project in $project" + + # Check if PID file exists + if [ -f "pids/$project.pid" ]; then + # Read the PID from the file and kill the process + PID=$(cat "pids/$project.pid") + kill $PID + echo "$project stopped, PID $PID killed" + + # Remove the PID file + rm "pids/$project.pid" + else + echo "PID file not found for $project" + fi +done + +echo "All dev servers have been stopped." diff --git a/scripts/snippets/sh-upgrade-projects.sh b/scripts/snippets/sh-upgrade-projects.sh new file mode 100755 index 00000000..83debb27 --- /dev/null +++ b/scripts/snippets/sh-upgrade-projects.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +# Define the parent directory where all project directories are located +parent_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/src/snippets" + +# 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 + echo "Upgrading packages in $project" + cd "$project" + + # Check if package.json exists + if [ -f package.json ]; then + # Run the upgrade command + npm run upgrade + else + echo "package.json not found in $project" + fi + + # Go back to the parent directory + cd .. +done + +echo "All projects have been upgraded." diff --git a/scripts/snippets/sh-zip-projects.sh b/scripts/snippets/sh-zip-projects.sh new file mode 100755 index 00000000..9f66f427 --- /dev/null +++ b/scripts/snippets/sh-zip-projects.sh @@ -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/snippets" + +# Define the directory where the zip files will be stored +zip_directory="/Users/vijaypratapsingh/Desktop/create-mern-app/zip/snippets" + +# 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." diff --git a/src/app/sh-zip-projects.sh b/src/app/sh-zip-projects.sh deleted file mode 100755 index 87da60e8..00000000 --- a/src/app/sh-zip-projects.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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" -) - -# Loop through each project directory to remove existing zip files and create new ones -for project in "${projects[@]}"; do - zip_file="${project}.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 for all projects." diff --git a/src/library/sh-zip-projects.sh b/src/library/sh-zip-projects.sh deleted file mode 100755 index b4ec2ab8..00000000 --- a/src/library/sh-zip-projects.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/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" -) - -# Loop through each project directory to remove existing zip files and create new ones -for project in "${projects[@]}"; do - zip_file="${project}.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 for all projects." diff --git a/src/packages/create-mernjs-app/lib/init.js b/src/packages/create-mernjs-app/lib/init.js index ce621178..edb0970e 100644 --- a/src/packages/create-mernjs-app/lib/init.js +++ b/src/packages/create-mernjs-app/lib/init.js @@ -14,7 +14,7 @@ module.exports = async (projectname, { project_type, template }) => { let project_typ = project_type.replace(/ /g, '-').toLowerCase() const destinationPath = `${currentWorkingDir}/${projectname}` - const sourcePath = path.join(__dirname, `../../../node_modules/create-mernjs-app/node_modules/mernjs/templates/${templates}/${project_typ}/`) + const sourcePath = path.join(__dirname, `../../../node_modules/create-mernjs-app/node_modules/mernjs/src/${templates}/${project_typ}/`) const gitSourcePath = path.join(__dirname, `utils/gitignore.js`) const appID = Helpers.generateRadomeString(32) diff --git a/zip/app/electronjs-boilerplate.zip b/zip/app/electronjs-boilerplate.zip new file mode 100644 index 00000000..f168bbc1 Binary files /dev/null and b/zip/app/electronjs-boilerplate.zip differ diff --git a/zip/app/expo-boilerplate.zip b/zip/app/expo-boilerplate.zip new file mode 100644 index 00000000..563ef62b Binary files /dev/null and b/zip/app/expo-boilerplate.zip differ diff --git a/zip/app/fastifyjs-mongodb-boilerplate.zip b/zip/app/fastifyjs-mongodb-boilerplate.zip new file mode 100644 index 00000000..6ea6cf78 Binary files /dev/null and b/zip/app/fastifyjs-mongodb-boilerplate.zip differ diff --git a/zip/app/fastifyjs-mysql-boilerplate.zip b/zip/app/fastifyjs-mysql-boilerplate.zip new file mode 100644 index 00000000..50bd9673 Binary files /dev/null and b/zip/app/fastifyjs-mysql-boilerplate.zip differ diff --git a/zip/app/gatsbyjs-boilerplate.zip b/zip/app/gatsbyjs-boilerplate.zip new file mode 100644 index 00000000..9d84aaca Binary files /dev/null and b/zip/app/gatsbyjs-boilerplate.zip differ diff --git a/zip/app/nextjs-boilerplate.zip b/zip/app/nextjs-boilerplate.zip new file mode 100644 index 00000000..9a4c8567 Binary files /dev/null and b/zip/app/nextjs-boilerplate.zip differ diff --git a/zip/app/nextjs-expressjs-boilerplate.zip b/zip/app/nextjs-expressjs-boilerplate.zip new file mode 100644 index 00000000..6a4fc69d Binary files /dev/null and b/zip/app/nextjs-expressjs-boilerplate.zip differ diff --git a/zip/app/nodejs-mongodb-boilerplate.zip b/zip/app/nodejs-mongodb-boilerplate.zip new file mode 100644 index 00000000..56334f19 Binary files /dev/null and b/zip/app/nodejs-mongodb-boilerplate.zip differ diff --git a/zip/app/nodejs-mysql-boilerplate.zip b/zip/app/nodejs-mysql-boilerplate.zip new file mode 100644 index 00000000..b3789ab0 Binary files /dev/null and b/zip/app/nodejs-mysql-boilerplate.zip differ diff --git a/zip/app/react-native-boilerplate.zip b/zip/app/react-native-boilerplate.zip new file mode 100644 index 00000000..bc065339 Binary files /dev/null and b/zip/app/react-native-boilerplate.zip differ diff --git a/zip/app/reactjs-boilerplate.zip b/zip/app/reactjs-boilerplate.zip new file mode 100644 index 00000000..520aa236 Binary files /dev/null and b/zip/app/reactjs-boilerplate.zip differ diff --git a/zip/app/reactjs-chrome-extension-boilerplate.zip b/zip/app/reactjs-chrome-extension-boilerplate.zip new file mode 100644 index 00000000..aee4d30f Binary files /dev/null and b/zip/app/reactjs-chrome-extension-boilerplate.zip differ diff --git a/zip/app/reactjs-webpack-boilerplate.zip b/zip/app/reactjs-webpack-boilerplate.zip new file mode 100644 index 00000000..d6f22b40 Binary files /dev/null and b/zip/app/reactjs-webpack-boilerplate.zip differ diff --git a/zip/app/t3js-boilerplate.zip b/zip/app/t3js-boilerplate.zip new file mode 100644 index 00000000..95ae8cf6 Binary files /dev/null and b/zip/app/t3js-boilerplate.zip differ diff --git a/zip/library/expressjs-library-boilerplate.zip b/zip/library/expressjs-library-boilerplate.zip new file mode 100644 index 00000000..91905202 Binary files /dev/null and b/zip/library/expressjs-library-boilerplate.zip differ diff --git a/zip/library/javascript-library-boilerplate.zip b/zip/library/javascript-library-boilerplate.zip new file mode 100644 index 00000000..44569b9c Binary files /dev/null and b/zip/library/javascript-library-boilerplate.zip differ diff --git a/zip/library/nextjs-library-boilerplate.zip b/zip/library/nextjs-library-boilerplate.zip new file mode 100644 index 00000000..6c56b8ee Binary files /dev/null and b/zip/library/nextjs-library-boilerplate.zip differ diff --git a/zip/library/nodejs-library-boilerplate.zip b/zip/library/nodejs-library-boilerplate.zip new file mode 100644 index 00000000..9fa004cd Binary files /dev/null and b/zip/library/nodejs-library-boilerplate.zip differ diff --git a/zip/library/react-native-library-boilerplate.zip b/zip/library/react-native-library-boilerplate.zip new file mode 100644 index 00000000..d03ff522 Binary files /dev/null and b/zip/library/react-native-library-boilerplate.zip differ diff --git a/zip/library/reactjs-library-boilerplate.zip b/zip/library/reactjs-library-boilerplate.zip new file mode 100644 index 00000000..257e6a93 Binary files /dev/null and b/zip/library/reactjs-library-boilerplate.zip differ diff --git a/zip/packages/create-mernjs-app.zip b/zip/packages/create-mernjs-app.zip new file mode 100644 index 00000000..d6b8903f Binary files /dev/null and b/zip/packages/create-mernjs-app.zip differ diff --git a/zip/packages/oauth-service.zip b/zip/packages/oauth-service.zip new file mode 100644 index 00000000..5a619c6a Binary files /dev/null and b/zip/packages/oauth-service.zip differ diff --git a/zip/packages/react-svg-icons-loader.zip b/zip/packages/react-svg-icons-loader.zip new file mode 100644 index 00000000..ef96b4b0 Binary files /dev/null and b/zip/packages/react-svg-icons-loader.zip differ diff --git a/zip/packages/xml-to-json-chunk-processor.zip b/zip/packages/xml-to-json-chunk-processor.zip new file mode 100644 index 00000000..ac816745 Binary files /dev/null and b/zip/packages/xml-to-json-chunk-processor.zip differ diff --git a/zip/packages/xml-to-mongodb-importer.zip b/zip/packages/xml-to-mongodb-importer.zip new file mode 100644 index 00000000..87c2899a Binary files /dev/null and b/zip/packages/xml-to-mongodb-importer.zip differ diff --git a/zip/snippets/angular-cad-platform.zip b/zip/snippets/angular-cad-platform.zip new file mode 100644 index 00000000..8b3d6c96 Binary files /dev/null and b/zip/snippets/angular-cad-platform.zip differ diff --git a/zip/snippets/canvas-line-app.zip b/zip/snippets/canvas-line-app.zip new file mode 100644 index 00000000..cd8d6ebc Binary files /dev/null and b/zip/snippets/canvas-line-app.zip differ diff --git a/zip/snippets/express-rate-limit.zip b/zip/snippets/express-rate-limit.zip new file mode 100644 index 00000000..0db3c0d2 Binary files /dev/null and b/zip/snippets/express-rate-limit.zip differ diff --git a/zip/snippets/extract-images-from-pdf.zip b/zip/snippets/extract-images-from-pdf.zip new file mode 100644 index 00000000..645a0260 Binary files /dev/null and b/zip/snippets/extract-images-from-pdf.zip differ diff --git a/zip/snippets/load-3d-model.zip b/zip/snippets/load-3d-model.zip new file mode 100644 index 00000000..4d64f4f1 Binary files /dev/null and b/zip/snippets/load-3d-model.zip differ diff --git a/zip/snippets/next-14-auth.zip b/zip/snippets/next-14-auth.zip new file mode 100644 index 00000000..2f015247 Binary files /dev/null and b/zip/snippets/next-14-auth.zip differ diff --git a/zip/snippets/node-express-auth-api.zip b/zip/snippets/node-express-auth-api.zip new file mode 100644 index 00000000..01b41503 Binary files /dev/null and b/zip/snippets/node-express-auth-api.zip differ diff --git a/zip/snippets/node-graphql-crud.zip b/zip/snippets/node-graphql-crud.zip new file mode 100644 index 00000000..a880ff2e Binary files /dev/null and b/zip/snippets/node-graphql-crud.zip differ diff --git a/zip/snippets/node-jwt.zip b/zip/snippets/node-jwt.zip new file mode 100644 index 00000000..8ce475ce Binary files /dev/null and b/zip/snippets/node-jwt.zip differ diff --git a/zip/snippets/node-llm-vector-db.zip b/zip/snippets/node-llm-vector-db.zip new file mode 100644 index 00000000..53c7f3e5 Binary files /dev/null and b/zip/snippets/node-llm-vector-db.zip differ diff --git a/zip/snippets/node-whisper.zip b/zip/snippets/node-whisper.zip new file mode 100644 index 00000000..5e39c297 Binary files /dev/null and b/zip/snippets/node-whisper.zip differ diff --git a/zip/snippets/nodejs-encryption-decryption.zip b/zip/snippets/nodejs-encryption-decryption.zip new file mode 100644 index 00000000..1a0042e3 Binary files /dev/null and b/zip/snippets/nodejs-encryption-decryption.zip differ diff --git a/zip/snippets/objects-classification.zip b/zip/snippets/objects-classification.zip new file mode 100644 index 00000000..1d4f99d3 Binary files /dev/null and b/zip/snippets/objects-classification.zip differ diff --git a/zip/snippets/open-ai-chat.zip b/zip/snippets/open-ai-chat.zip new file mode 100644 index 00000000..17c1416c Binary files /dev/null and b/zip/snippets/open-ai-chat.zip differ diff --git a/zip/snippets/open-ai-pdf.zip b/zip/snippets/open-ai-pdf.zip new file mode 100644 index 00000000..88f5c394 Binary files /dev/null and b/zip/snippets/open-ai-pdf.zip differ diff --git a/zip/snippets/react-2d-floor-design.zip b/zip/snippets/react-2d-floor-design.zip new file mode 100644 index 00000000..6e94e897 Binary files /dev/null and b/zip/snippets/react-2d-floor-design.zip differ diff --git a/zip/snippets/react-paint-brush-app.zip b/zip/snippets/react-paint-brush-app.zip new file mode 100644 index 00000000..7e266258 Binary files /dev/null and b/zip/snippets/react-paint-brush-app.zip differ diff --git a/zip/snippets/react-svg-icon-loader.zip b/zip/snippets/react-svg-icon-loader.zip new file mode 100644 index 00000000..cde6dd6c Binary files /dev/null and b/zip/snippets/react-svg-icon-loader.zip differ diff --git a/zip/snippets/react-wardrobe-builder-app.zip b/zip/snippets/react-wardrobe-builder-app.zip new file mode 100644 index 00000000..9d49b457 Binary files /dev/null and b/zip/snippets/react-wardrobe-builder-app.zip differ diff --git a/zip/snippets/swift-camera-app.zip b/zip/snippets/swift-camera-app.zip new file mode 100644 index 00000000..956094ea Binary files /dev/null and b/zip/snippets/swift-camera-app.zip differ diff --git a/zip/snippets/swift-camera-app2.zip b/zip/snippets/swift-camera-app2.zip new file mode 100644 index 00000000..14578dba Binary files /dev/null and b/zip/snippets/swift-camera-app2.zip differ diff --git a/zip/snippets/swift-chat-with-gemini.zip b/zip/snippets/swift-chat-with-gemini.zip new file mode 100644 index 00000000..50dad7ce Binary files /dev/null and b/zip/snippets/swift-chat-with-gemini.zip differ diff --git a/zip/snippets/swift-firebase-auth-app.zip b/zip/snippets/swift-firebase-auth-app.zip new file mode 100644 index 00000000..e9ddeffb Binary files /dev/null and b/zip/snippets/swift-firebase-auth-app.zip differ diff --git a/zip/snippets/video-player.zip b/zip/snippets/video-player.zip new file mode 100644 index 00000000..9e86f6ff Binary files /dev/null and b/zip/snippets/video-player.zip differ diff --git a/zip/snippets/whatsapp-web-js.zip b/zip/snippets/whatsapp-web-js.zip new file mode 100644 index 00000000..05e4c6fc Binary files /dev/null and b/zip/snippets/whatsapp-web-js.zip differ