Skip to content

Latest commit

 

History

History
82 lines (63 loc) · 2.51 KB

README.md

File metadata and controls

82 lines (63 loc) · 2.51 KB

Dot Code School is an interactive online school that teaches you how to build meaningful web3 applications using the Polkadot SDK. This project aims to onboard newcomer developers to build their own custom blockchain from zero to one hundred.

The tutorial builds upon the raw content written by Shawn Tabrizi, available on the rust-state-machine repo.

Interactive Learning Interface

dotcodeschool interactive coding interface

Development

This is a Next.js project that uses the Contentful API for hosting the tutorials.

Before starting, you'll need to setup the following content models on Contentful:

{
  author: {
    name, // Short Text
    url, // Short Text
  },
  courseModule: {
    moduleName, // Short text
    author, // Reference
    moduleDescription, // Long text
    level, // Short text
    language, // Short text
    sections, // References, many
    slug, // Short text
  },
  files: {
    title, // Short text
    source, // Media, many files
    template, // Media, many files
    solution, // Media, many files
  },
  lesson: {
    lessonName, // Short text
    lessonContent, // Long text
    lessonDescription, // Long text
    files, // Reference
  },
  section: {
    title, // Short text
    description, // Long text
    lessons, // References, many
  },
}

Next, you will need to set up your local environment with the following variables:

# Contentful API
CONTENTFUL_SPACE_ID="<your_contentful_space_id>"
CONTENTFUL_ENVIRONMENT="<your_contentful_environment>"
CONTENTFUL_ACCESS_TOKEN="<your_contentful_access_token>"

# User Auth
NEXTAUTH_URL="<your_websites_url>"
NEXTAUTH_SECRET="<your_secret>"

GITHUB_ID="<your_github_client_id>"
GITHUB_SECRET="<your_github_client_secret>"

# Database
MONGODB_URI="<your_mongodb_uri>"

To start the development server, simply run:

yarn dev

Open http://localhost:3000 on your browser to interact with the UI locally.

Deploy on Vercel

The easiest way to deploy your the app is to use the Vercel Platform from the creators of Next.js.

Check out the Next.js deployment documentation for more details.