Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/limone-eth/farcaster-snap-site
Website to Install Farcaster MetaMask Snap
https://github.com/limone-eth/farcaster-snap-site
Last synced: 9 days ago
JSON representation
Website to Install Farcaster MetaMask Snap
- Host: GitHub
- URL: https://github.com/limone-eth/farcaster-snap-site
- Owner: limone-eth
- Created: 2023-12-22T10:56:10.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-22T19:06:06.000Z (about 1 year ago)
- Last Synced: 2024-12-26T14:14:59.484Z (14 days ago)
- Language: TypeScript
- Size: 4.98 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TypeScript Example Snap Front-end
This project was bootstrapped with [Gatsby](https://www.gatsbyjs.com/).
## Available Scripts
In the project directory, you can run:
### `yarn start`
Runs the app in the development mode.\
Open [http://localhost:8000](http://localhost:8000) to view it in the browser.The page will reload if you make edits.\
You will also see any lint errors in the console.### `yarn build`
Builds the app for production to the `public` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!See the section about [deployment](https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/) for more information.
## Environment variables
Gatsby has built-in support for loading environment variables into the browser and Functions. Loading environment variables into Node.js requires a small code snippet.
In development, Gatsby will load environment variables from a file named `.env.development`. For builds, it will load from `.env.production`.
By default you can use the `SNAP_ORIGIN` variable (used in `src/config/snap.ts`) to define a production origin for you snap (eg. `npm:MyPackageName`). If not defined it will defaults to `local:http://localhost:8080`.
A `.env` file template is available, to use it rename `.env.production.dist` to `.env.production`
To learn more visit [Gatsby documentation](https://www.gatsbyjs.com/docs/how-to/local-development/environment-variables/)
## Learn More
You can learn more in the [Gatsby documentation](https://www.gatsbyjs.com/docs/).
To learn React, check out the [React documentation](https://reactjs.org/).
# farcaster-snap-site