Course creation

Process

  1. Secure the code base - https://github.com/j143/openmined

  2. Find a development environment

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

  4. Components - Sanity CMS - yarn - Firebase

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

  6. 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#L96

Auxiliary tools

Configuration

.local.env

.env

  1. Goto https://console.firebase.google.com/project/onevara-courses/settings/general 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-data

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_file

.https://firebase.google.com/docs/cli/targets#configure_your_firebasejson_file_to_use_deploy_targets

.https://firebase.google.com/docs/functions/manage-functions#deploy_functions

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/ has been created in us-central.

Collection

Nodejs API

.https://googleapis.dev/nodejs/firestore/latest/DocumentReference.html

Cypress

Billing

.https://console.firebase.google.com/project/onevara-courses/usage/details

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-diff

Errors2

.https://github.com/sanity-io/design/blob/next/CONTRIBUTING.md

  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-started

.https://eslint.org/docs/user-guide/configuring/

Updates

Add seed data to firestore firebase

Resources. how do I seed data to firebase firestore

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

Was this helpful?