
Build a social networking smart contract in Rust for Near blockchain, setting up project, defining a post struct, adding posts, tagging, and liking, with search by tag and account queries.
Build a social media dapp with TypeScript and React JS on the Near blockchain, setting up the dapp and smart contract to post, like, and tag content.
Mammoth Interactive introduces its online school, founded in 2012 by John Bara, highlighting in-demand tech skills and recognition from Harvard and CNN.
Learn online effectively by leveraging industry-led instructors, flexible pacing, and affordable, rewatchable content. Finish projects, build a portfolio through project-based learning, and use Google to accelerate skill growth.
Learn what a blockchain is, how decentralized nodes maintain a timestamped, immutable digital ledger, and how Cardano enables trustless smart contracts.
Define a smart contract as an automated digital agreement on the Cardano blockchain, a program that executes financial transactions when conditions are met, using Marlowe and Haskell.
Learn what NEAR is and how it differs: a simple, secure, scalable layer-one with nightshade sharding, proof-of-stake, low cost, fast transactions, named accounts, and cross-chain solidity deployment.
Discover why every developer should master the terminal and shell. Learn practical reasons—from NPM and Git to front-end tasks, back-end work, and cloud access—that rely on command line proficiency.
Enable the Windows Subsystem for Linux, install a Linux terminal from the Microsoft Store, and run Ubuntu or another distro to access a Unix shell on Windows.
Explore Linux and Unix terminals, their history, and how shells like Bash and Zsh provide access on Mac and Windows for command-line work.
Learn to use the Unix terminal by building your first command with echo, and explore quotes and multiple arguments on mac zsh.
Navigate directories in the Unix command line using ls, pwd, mkdir, and cd; create folders, verify your location, and move between directories in the Z shell or Bash.
Create a new file from the command line using touch. Edit the file with nano, save the modified buffer, and view its contents with cat.
Learn how to create directories and files, move and copy between folders, and rename items using mv, cp, and ren, while understanding relative versus full paths in a unix-like shell.
Discover how Node.js, a JavaScript runtime, powers a server to handle client requests and serve dynamic pages. Build both front-end and back-end capabilities for multi-user, live-updating websites.
Install node and npm on Mac or Windows from nodejs.org, then verify with node -V and npm -V and ensure a global installation or version manager.
Install node and npm on Windows by downloading from nodejs.org, choosing the 64-bit installer, and completing the setup wizard; then verify node -v and npm -v.
Explore Rust, an open-source language designed for performance and memory safety, widely used for safe, fast smart contracts on the NEAR blockchain.
Set up a NEAR smart contract project with Rust, using the NEAR app template and sandbox tests, install dependencies, and review the contract and tests.
Learn a hello world Rust smart contract on NEAR, covering the default message, contract structure, and the view and call methods with gas and signer requirements.
Explore Rust strings: String and &str. String is a heap allocated, valid UTF-8 sequence; &str is a non-owning string slice viewed through an ampersand.
Explore Rust structs with attributes for smart contracts, including public structs, near_bindgen, derive, serialize, and deserialize, and how default traits help access code across files.
Explore Rust's default trait and how to implement a default for a struct like a contract, initializing the message with self, and note that default cannot take multiple arguments.
Explore mutability in Rust by examining a set_greeting function that uses a mutable self and a string message, and learn how log calls update the blockchain with the NIR SDK.
Install curl, a command line tool for transferring data with URLs, on macOS, Linux, or Windows. Follow steps using Homebrew on macOS, apt on Linux, or Chocolatey on Windows.
Install rust and cargo on Mac with Bash or Zsh, or on Windows using rustup, then configure your environment variables and restart the shell to use rust and cargo.
Define a public post struct in Rust for a NEAR smart contract, including id, title, description, tags, media, liked_by: Vec<AccountId>, and owner_id, with BorshSerialize, BorshDeserialize, Serialize, Deserialize, and Clone traits.
Develop a rust near contract using near bindgen and near sdk collections, modeling posts with unordered maps (u128 ids) and likes by user, plus a default constructor and build checks.
Add a public post function in Rust to create and store posts with title, description, media, and owner, converting tags from string to vec and indexing by tag.
Store posts by tag in the Rust social contract by iterating each tag, creating or updating a vector of posts, and pushing a clone of the post.
Implement a public get_all_posts function in a Rust smart contract that returns all posts as a vec of key-value tuples, converting the map for easy iteration.
What is the NEAR blockchain?
built to be simple, secure and scalable.
Low cost. High speed. Effortless scale.
<0.01USD Transaction Cost
18M+ Active Accounts
400K Daily Transactions
~2.4s Time to Finality
Contracts, DAOs, dapps, funding
Layer 1 blockchain
not dependent on other chains.
uses a unique scaling mechanism
Nightshade sharding
Scales infinitely
resists short-term usage spikes
Proof of stake
More efficient than Bitcoin and Ethereum
web-based wallet
no need for users to install programs or browser extensions
makes it especially easy to onboard new users (e.g. through named accounts)
Certified carbon neutral
consumes in a year the same energy bitcoin consumes in 3 minutes
Interoperable with Ethereum
using Rainbow Bridge
Your Instructor
Alexandra Kropova is a software developer with extensive experience in smart contract and decentralized app development. She has helped produce courses for Mammoth Interactive since 2016, including many blockchain and Web3 courses.
Mammoth Interactive is a leading online course provider in everything from learning to code to becoming a YouTube star. Mammoth Interactive courses have been featured on Harvard’s edX, Business Insider and more.
Over 11 years, Mammoth Interactive has built a global student community with 1.1 million courses sold. Mammoth Interactive has released over 250 courses and 2,500 hours of video content.
Founder and CEO John Bura has been programming since 1997 and teaching since 2002. John has created top-selling applications for iOS, Xbox and more. John also runs SaaS company Devonian Apps, building efficiency-minded software for technology workers like you.
Join 1.3+ million students in high-quality courses featured at Harvard
Lifetime access that never expires
Project-based curriculum to superboost your portfolio
Graduation certificate for every course
Absolute beginner-friendly
90% off today
Use any computer
Satisfaction guarantee
Get all source code
Popular bundle by Mammoth students
Perfected over years of training
Reviews from the Mammoth Community
"This is AMAZING I just learned how to code without breaking a sweat, this is really easy and fun!" -Shalonda Lewis
"This course so far is by far amazing! The instructor is very encouraging and up beat." -Moiz Saqib
"It was informative and definitely covered the basics. Easy to understand and to follow." -Colin Mooney