-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgetting-started.sh
24 lines (17 loc) · 997 Bytes
/
getting-started.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
# This script will look for any folder and file with the name "pocketbase-nextjs-template" and replace it with the name of your project
# get the name of the project
echo "What is the name of your project?"
read -r project_name
# Find every folder with the name "pocketbase-nextjs-template" and replace it with the name of your project
find . -type d -name "pocketbase-nextjs-template" -exec sh -c 'mv "$1" "${1/pocketbase-nextjs-template/$2}"' _ {} $project_name \;
# go throug every file content and replace "pocketbase-nextjs-template" with the name of your project
grep -rl pocketbase-nextjs-template . | xargs sed -i '' "s/pocketbase-nextjs-template/$project_name/g"
echo "Done!"
echo "============================="
echo "Next steps:"
echo "1. direct to your project root folder"
echo "2. docker-compose up -d --build"
echo "3. change/expand the readme.md file"
echo "4. change the name in the manifest.json and _app.tsx file"
echo "============================="