Course creation

Process

  1. Find a development environment

  2. Mentally be prepared for the quantum of time required to complete this project

  3. Components - Sanity CMS - yarn - Firebase

  4. Know the components may not work out-of-the box

  5. The course content is not yet created.

Checklist

Course dashboard

Course content - https://github.com/OpenMined/openmined/blob/dev/apps/courses-e2e/src/integration/courses.spec.ts#L96arrow-up-right

Auxiliary tools

Configuration

.local.env

.env

  1. Goto https://console.firebase.google.com/project/onevara-courses/settings/generalarrow-up-right Create a web app to receive the following credentials.

Firestore configuration

Code

Sanity

sanity.json

yarn start sanity-api

Update projectId to x6ltnsla.

Sanity studio

Sanity import data

.https://www.sanity.io/docs/importing-dataarrow-up-right

Course content schema

folder structure for sanity cms

Sanity errors

yarn build firebase-api

Firebase

firebase.json

name

Type of entity

onevara-courses

Organization name

onevara-courses-dev

Organization name

onevara-education

App nickname

onevara-education-dev

App nickname

yarn test firebase-api

.https://firebase.google.com/docs/cli#the_firebasejson_filearrow-up-right

.https://firebase.google.com/docs/cli/targets#configure_your_firebasejson_file_to_use_deploy_targetsarrow-up-right

.https://firebase.google.com/docs/functions/manage-functions#deploy_functionsarrow-up-right

Region

issue related to region europe-west1

Firebase deployment

Change the .env credentials to that of .local.env still the same error

Based on the error message https://console.firebase.google.com/project/onevara-courses-dev/firestore/arrow-up-right has been created in us-central.

Collection

Nodejs API

.https://googleapis.dev/nodejs/firestore/latest/DocumentReference.htmlarrow-up-right

Cypress

Billing

.https://console.firebase.google.com/project/onevara-courses/usage/detailsarrow-up-right

Errors

1 Uncaught TypeError

2 React will try to recreate this component tree

from scratch using the error boundary you provided, ErrorBoundary. logCapturedError @ vendor.js:120927

3 Can't perform a React state update

4 Signup or signin error

This is due to development server using .local.env and pinging with development projectId.

5 Sanity is not yet connected

data received from

is

6 Property '_path' does not exist on type ' '

Possible solution could be https://firebase.google.com/docs/functions/beta-v1-diffarrow-up-right

Errors2

.https://github.com/sanity-io/design/blob/next/CONTRIBUTING.mdarrow-up-right

  1. yarn dev:docs

An error occured while attempting to reach the Sanity API.

  1. Unable to build sanity ui project documentation

Lint

.https://eslint.org/docs/user-guide/getting-startedarrow-up-right

.https://eslint.org/docs/user-guide/configuring/arrow-up-right

Updates

Add seed data to firestore firebase

Resources. how do I seed data to firebase firestorearrow-up-right

Check that queries are functioning as intended.

Keep the fork up to date with the OS repository

TODO

  1. Create design tutorials, and courses

  2. make sanity work

Last updated