Skip to content

silvestrevivo/solana-svelte-twitter

Repository files navigation

Solana-svelte-twitter

Project made with Anchor and SvelteKit regarding the @lorisleiva tutorial. The Anchor application lives in the root folder. In the app folder you can find the SvelteKit application.

screenshot2

screenshot1

Anchor Setup

You need to have Cargo and Rust installed to build the contract. First of all, clone the repo and run yarn install to add all the dependencies to the Anchor application. Make sure that you have Solana locally in localhost and change all the devnet references to localhost. Once that is done, to build and deploy locally the project run the next command:

anchor localnet

This command is going to generate the idl json file responsible to communicate with the rpc from Solana.

Frontend setup

Frontend is build with SvelteKit. To run it on localhost:3000

cd app
npm install
npm run dev

About

Twitter app based on Anchor and SvelteKit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published