Git Product home page Git Product logo

solana-course's Introduction

Solana Development Course

About

This course is designed to be the absolute best starting point for Web Developers looking to learn Web3 Development. Solana is the ideal network for starting your Web3 journey because of its high speed, low cost, energy efficiency, and more.

This repository represents an ongoing project. We'll update the list of available lessons in the Get Started section below as they're completed. If you'd like to help out, have a look how you can contribute.

At the time of writing, the first five modules represent what we consider the core of Solana development. Modules 1-2 primarily focus on client-side Solana development and Modules 3-4 focus on developing native programs on the Solana network. Module 5 takes everything you learn in Modules 1-4 and shows you how to do it using the Anchor framework. Subsequent modules represent more advanced and/or niche content, so you can pick and choose lessons a bit more at that point. However, we strongly recommend you make sure you understand the security exploits described in Module 7.

Get Started

While you can absolutely just jump into the lessons below, we suggest you start by reading our Course Guide first for a primer on how lessons are organized and how you can get the most out of them.

Module 1 - Client interaction with the Solana network

  1. Read data from the network
  2. Write data to the network
  3. Interact with wallets
  4. Serialize custom instruction data
  5. Deserialize custom account data
  6. Page, Order, and Filter custom account data

Module 2 - Client interaction with common Solana programs

  1. Create tokens with the Token Program
  2. Swap tokens with the Token Swap Program
  3. Create Solana NFTs With Metaplex

Module 3 - Basic Solana program development

  1. Hello World
  2. Create a Basic Program, Part 1 - Handle Instruction Data
  3. Create a Basic Program, Part 2 - State Management
  4. Create a Basic Program, Part 3 - Basic Security and Validation

Module 4 - Intermediate Solana program development

  1. Local Program Development
  2. Program Derived Addresses
  3. Cross Program Invocations
  4. Program Testing - Coming Soon

Module 5 - Anchor program development

  1. Intro to Anchor development
  2. Intro to client-side Anchor development
  3. Anchor PDAs and accounts
  4. Anchor CPIs and errors

Module 6 - Beyond the Basics

  1. Environment variables in Solana programs
  2. Solana Pay
  3. Versioned transactions and lookup tables
  4. Rust procedural macros

Module 7 - Solana Program Security

  1. How to approach the Program Security module
  2. Signer authorization
  3. Owner checks
  4. Account data matching
  5. Reinitialization attacks
  6. Duplicate mutable accounts
  7. Type cosplay
  8. Arbitrary CPIs
  9. Bump seed canonicalization
  10. Closing accounts and revival attacks
  11. PDA sharing

Contribute to the Course

We plan for this course to be perpetually open-source and we'd love for anyone and everyone to contribute!

Adding content

If you'd like to add content, please start by creating an issue and tagging @jamesrp13 to discuss your reasoning, plan, and timeline.

Once a plan has been discussed and agreed to, you can start working on content. When you're done, create a PR to the draft branch.

Editing Existing Content

If you want to fix a typo or otherwise improve on existing content, follow a similar process as with adding content:

  1. Create an issue and/or comment on an existing issue to state you've started working
  2. Create a PR to the draft branch during or when complete

Committing

We are using conventional commits for this repository.

General flow for making a contribution:

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. Submit a Pull request so that we can review your changes

NOTE: Be sure to merge the latest from upstream/draft before making a pull request!

Localization

In order for the course structure to be maintained, localized files need to adhere to the following rules:

  1. Localized lesson files should be in a subdirectory of content named after the language abbreviation. For example, lessons translated into Spanish should be housed in content/es.
  2. Localized asset files should be in a subdirectory of assets named after the language abbreviation. For example, assets localized into Spanish should be housed in assets/es.
  3. File names for localized files must be identical to their English counterpart. To be clear, do not translate file names. The file name is used as the slug for the article and must be identical between languages.

Providing general feedback

If you have feedback on content or suggestions for additional content, simply create an issue explaining your feedback/suggestions.

solana-course's People

Contributors

chester-king avatar hmzakhalid avatar ixmorrow avatar jamesrp13 avatar lightyagami200 avatar lndgalante avatar loopcreativeandy avatar mixelpixel avatar neilshroff avatar nikkaroraa avatar zyjliu avatar

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.