Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update cadence #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VITE_PROFILE_ADDRESS=0xba1132bc08f82fe2
VITE_ACCESS_NODE_API=https://rest-testnet.onflow.org
VITE_DISCOVERY_WALLET=https://fcl-discovery.onflow.org/testnet/authn
VITE_FLOW_NETWORK=emulator
VITE_ACCESS_NODE_API=http://localhost:8888
VITE_DISCOVERY_WALLET=http://localhost:8701/fcl/authn
3 changes: 3 additions & 0 deletions .env.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VITE_FLOW_NETWORK=emulator
VITE_ACCESS_NODE_API=http://localhost:8888
VITE_DISCOVERY_WALLET=http://localhost:8701/fcl/authn
3 changes: 3 additions & 0 deletions .env.testnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VITE_FLOW_NETWORK=testnet
VITE_ACCESS_NODE_API=https://rest-testnet.onflow.org
VITE_DISCOVERY_WALLET=https://fcl-discovery.onflow.org/testnet/authn
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,24 @@ npm run dev
npm run dev -- --open
```

## Developing with Flow emulator

**Pre-Requisite**: To develop locally, make sure you have the Flow CLI installed: https://docs.onflow.org/flow-cli/install/

Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start the emulator, deploy the contracts, followed by the development server:

```bash
flow emulator # run emulator
flow deploy # deploy smart contracts
flow dev-wallet # run dev wallet

npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
```

> NOTE: If you are switching between testnet and the emulator without changing tabs, FCL will keep you logged in with your testnet address (or vice-versa). Remember to logout inbetween environments to avoid runtime errors!

## Building

Before creating a production version of your app, install an [adapter](https://kit.svelte.dev/docs#adapters) for your target environment. Then:
Expand Down
Loading