Skip to content

Commit

Permalink
feat: add env setup
Browse files Browse the repository at this point in the history
  • Loading branch information
adityataps committed Aug 24, 2024
1 parent 8f519a0 commit ef6baff
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/.env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
IPINFO_IO_API_KEY=
OPENWEATHER_API_KEY=
9 changes: 9 additions & 0 deletions api/scripts/generate_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

echo "Generating ENV file for API..."
touch .env

echo "IPINFO_IO_API_KEY=$IPINFO_IO_API_KEY" >> .env
echo "OPENWEATHER_API_KEY=$OPENWEATHER_API_KEY" >> .env

echo "ENV file generated successfully."
1 change: 1 addition & 0 deletions client/.env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_API_URL=
8 changes: 8 additions & 0 deletions client/scripts/generate_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

echo "Generating ENV file for Client..."
touch .env

echo "VITE_API_URL=$VITE_API_URL" >> .env

echo "ENV file generated successfully."

0 comments on commit ef6baff

Please sign in to comment.