https://github.com/cap-go/tutorials
Capacitor tutorials
https://github.com/cap-go/tutorials
Last synced: 3 months ago
JSON representation
Capacitor tutorials
- Host: GitHub
- URL: https://github.com/cap-go/tutorials
- Owner: Cap-go
- Created: 2023-09-05T10:27:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-21T12:14:35.000Z (8 months ago)
- Last Synced: 2025-01-19T14:22:03.296Z (3 months ago)
- Language: TypeScript
- Homepage: https://capacitor-tutorial.com/
- Size: 95.7 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 capacitor 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 Capacitor Plugins Metadata from NPM registry
```
node scripts/generate_actions.mjs
```# Step 2. Fetch Capacitor 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