Skip to content

Cap-go/react-native-tutorials

Repository files navigation

Folders and their usage:

  • loadedVectorStore: it's the vector store generated by training the model as described below in Step 3.
  • openai-readmes: it's the set of readme's of the React Native plugins, doing so, won't need to fetch the readmes again
  • public: containing assets of capgo
  • scripts: containing the scripts that perform fetch and write of files and plugins's metadata
  • src/content: containing the tutorials that are shown on the website

Setup Local

pnpm i

Step 1. Fetch React Native Plugins Metadata from NPM registry

node scripts/generate_actions.mjs

Step 2. Fetch React Native Plugins READMEs (the folder openai-readmes)

node scripts/write_readme.mjs

Step 3. Train OpenAI Model On The Same

node scripts/train_model.mjs

Step 4. Write Blogs

node scripts/generate_tutorials.mjs

Step 5: Build and Preview

pnpm build && pnpm preview

Setup Github actions

Step 1. Generate Packages List from NPM

https://github.com/Cap-go/tutorials/actions/workflows/generate-actions-list.yml

Step 2. Fetch and Create READMEs

https://github.com/Cap-go/tutorials/actions/workflows/write-readmes.yml

Step 3. Train Model

https://github.com/Cap-go/tutorials/actions/workflows/train-model.yml

Step 4. Write Tutorials

https://github.com/Cap-go/tutorials/actions/workflows/write-tutorials.yml

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published