Skip to content

Commit

Permalink
setups cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nofurtherinformation committed Aug 26, 2024
1 parent cfd6589 commit 168cd48
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Beginner Quickstart
If you simply want to run the application or use the visual interface to edit content, use the following to get started:
If you simply want to run the application or use the visual interface to edit content, use the following to get started. Important: this setup is not recommedned for those with existing development environments.

*On windows:*
- Double click `setup-windows.bat` in the base folder for the project
Expand Down
15 changes: 8 additions & 7 deletions setup-macos.command
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/bash
if [ -f .env ]; then echo ".env file exists, skipping prompts."; else
# Prompt for environment variables
read -p "Please enter the DATA_ENDPOINT: " DATA_ENDPOINT
read -p "Please enter the NEXT_PUBLIC_MAPBOX_TOKEN: " NEXT_PUBLIC_MAPBOX_TOKEN

# Prompt for environment variables
read -p "Please enter the DATA_ENDPOINT: " DATA_ENDPOINT
read -p "Please enter the NEXT_PUBLIC_MAPBOX_TOKEN: " NEXT_PUBLIC_MAPBOX_TOKEN

# Create or update the .env file
echo "DATA_ENDPOINT=$DATA_ENDPOINT" > .env
echo "NEXT_PUBLIC_MAPBOX_TOKEN=$NEXT_PUBLIC_MAPBOX_TOKEN" >> .env
# Create or update the .env file
echo "DATA_ENDPOINT=$DATA_ENDPOINT" > .env
echo "NEXT_PUBLIC_MAPBOX_TOKEN=$NEXT_PUBLIC_MAPBOX_TOKEN" >> .env
fi

# Check if Node.js is installed
if ! command -v node &> /dev/null
Expand Down
16 changes: 9 additions & 7 deletions setup-windows.bat
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
@echo off
SETLOCAL

REM Prompt for environment variables
set /p DATA_ENDPOINT=Please enter the DATA_ENDPOINT:
set /p NEXT_PUBLIC_MAPBOX_TOKEN=Please enter the NEXT_PUBLIC_MAPBOX_TOKEN:

REM Create or update the .env file
echo DATA_ENDPOINT=%DATA_ENDPOINT% > .env
echo NEXT_PUBLIC_MAPBOX_TOKEN=%NEXT_PUBLIC_MAPBOX_TOKEN% >> .env
if exist .env (echo .env file exists, skipping prompts.) else (
REM Prompt for environment variables
set /p DATA_ENDPOINT=Please enter the DATA_ENDPOINT:
set /p NEXT_PUBLIC_MAPBOX_TOKEN=Please enter the NEXT_PUBLIC_MAPBOX_TOKEN:

REM Create or update the .env file
echo DATA_ENDPOINT=%DATA_ENDPOINT% > .env
echo NEXT_PUBLIC_MAPBOX_TOKEN=%NEXT_PUBLIC_MAPBOX_TOKEN% >> .env
)

REM Navigate to the application folder
cd /d "%~dp0"
Expand Down

0 comments on commit 168cd48

Please sign in to comment.