Initial commit

This commit is contained in:
pptx704
2025-06-15 15:57:28 +03:00
parent 7549a1f560
commit a697fc5ca5
5 changed files with 1671 additions and 1 deletions

View File

@ -1,3 +1,23 @@
# capacitor-template
Template repo for Capacitor frontend
Template repository for all FastAPI backend projects developed by Omukk.
## Components
- Basic Capacitor dependencies
- Initial codebase to start from
## Using this template
1. **Create a new repository from this template**:
- In Omukk Repos, navigate to [this repository](https://git.omukk.dev/pptx704/capacitor-template)
- Click the "Use this template" button at the top of the page
- Choose "Create a new repository"
- Fill in your new repository details and click "Create Repository"
2. **Clone your new repository**:
```bash
git clone git@git.omukk.dev/<username>/<repo>.git
cd <repo>
```
3. Check Capacitor [quickstart](https://capacitorjs.com/docs/getting-started) to get started
4. Your code should go to `www` folder.

11
capacitor.config.json Executable file
View File

@ -0,0 +1,11 @@
{
"appId": "com.template.app",
"appName": "Template App",
"webDir": "www",
"bundledWebRuntime": true,
"plugins": {
"EdgeToEdge": {
"backgroundColor": "#ffffff"
}
}
}

1601
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

23
package.json Executable file
View File

@ -0,0 +1,23 @@
{
"name": "capsule",
"version": "1.0.0",
"main": "script.js",
"scripts": {
"start": "http-server www -p 8080",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"dependencies": {
"@capacitor/android": "^7.2.0",
"@capacitor/app": "^7.0.1",
"@capacitor/cli": "^7.1.0",
"@capacitor/core": "^7.1.0",
"@capawesome/capacitor-android-edge-to-edge-support": "^7.2.1"
},
"devDependencies": {
"http-server": "^14.1.1"
}
}

15
www/index.html Executable file
View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<title>Template Project</title>
</head>
<body>
<h1>This is a Capacitor template project.</h1>
</body>
</html>