Giter Club home page Giter Club logo

create-solana-starter's Introduction

create-solana-starter

create-solana-starter is a command-line tool that initializes a new Solana project for you so you can skip tedious manual steps and go straight to coding.

Prerequisites

Usage

  1. Run npx create-solana-starter@latest my-solana-app to initialize the project.
  2. Start the Solana backend with cd my-solana-app && npm start.
  3. Start the Next.js frontend with cd my-solana-app && npm run next.
  4. Make changes to lib.rs and watch the console.
  5. Press Ctrl+C to stop the tasks once you're done.

Features

Working

  • Run via npx. No explicit installation required.
  • Initializes an Anchor project with anchor init.
  • Generates a shareable wallet for development purposes (do not use on mainnet!!!) with solana-keygen.
  • Generates Anchor source code with a valid program ID.
  • An npm script to (re)build and init/upgrade the on-chain program/IDL anytime.
  • A lib.rs file watcher that runs the above-mentioned script automatically on changes.
  • A second npm script to do lots of heavy lifting (start the test validator & file watcher, give you some SOL so that you can actually deploy, etc.)
  • Two more npm scripts for long-to-type Anchor commands.
  • An Anchor script that verifies that there's actually a valid program at the program ID.
  • Verbose output so that you can actually understand what's going on under the hood.
  • There's a Next.js frontend in app that connects to our test validator.
  • The code in lib.rs lets you store an arbitrary signed integer on-chain.
  • Interact with the Solana program (storing and retrieving an arbitrary number) in the frontend.

Planned

  • Add tests for the number storage and retrieval feature.
  • Choose between different templates (e.g. Anchor or Seahorse).
  • Real-time CLI output.
    • Right now, there's only output after the respective command (e.g. anchor build) has completed. That may take a minute or two.

Links

create-solana-starter's People

Contributors

ilovehackathons avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

thejonanshow

create-solana-starter's Issues

Dockerfile

Might be a good idea to wrap this in a container to avoid with version issues.

This doesn't install for me at all.

Running these versions:

❯ node -v
v18.13.0

❯ rustc --version
rustc 1.67.0 (fc594f156 2023-01-24)

❯ solana --version
solana-cli 1.15.2 (src:dea65f48; feat:1211687720, client:SolanaLabs)

❯ anchor --version
anchor-cli 0.27.0

❯ git --version
git version 2.39.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.