Skip to content

Commit

Permalink
fix: Fix post setup instructions to consult .env
Browse files Browse the repository at this point in the history
  • Loading branch information
nadeesha committed Oct 26, 2021
1 parent 93b21cc commit 28b691b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/setup/setup_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ func PrintSetup(appId string) {
fmt.Println("🚀 Your new app has been created.")
fmt.Println("")
fmt.Println("React/Javascript: To create a brand new project in the current dir:")
ccmd.Printf("$ npx create-react-app --template @usecloudstate/usecloudstate-js . && sed -i 's/USECLOUDSTATE_APP_ID/%s/' src/utils/cloudstate.js\n", appId)
ccmd.Printf("$ npx create-react-app --template @usecloudstate/usecloudstate-js . && echo \"REACT_APP_CLOUD_STATE_APP_ID=%s\" >> .env\n", appId)
fmt.Println("")
fmt.Println("React/Typescript: To create a brand new project in the current dir:")
ccmd.Printf("$ npx create-react-app --template @usecloudstate/usecloudstate-ts . && sed -i 's/USECLOUDSTATE_APP_ID/%s/' src/utils/cloudstate.ts\n", appId)
ccmd.Printf("$ npx create-react-app --template @usecloudstate/usecloudstate-ts . && echo \"REACT_APP_CLOUD_STATE_APP_ID=%s\" >> .env\n", appId)
fmt.Println("")
fmt.Printf("More docs and admin console is available at: https://usecloudstate.io/admin/apps/%s/settings\n", appId)
fmt.Println("Happy coding! 👋")
Expand Down

0 comments on commit 28b691b

Please sign in to comment.