Skip to content

Modest-Human-Brands/modest-human-brands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

124 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

NuxTemplate

uptime status

Landing

Autonomous Next-Gen Media Operating System

  • πŸ“¦ SSR
  • πŸ–ΌοΈ OG Tags
  • πŸš€ PWA
  • βœ‹ Push Notification
  • πŸŒ™ Light/Dark Mode
  • πŸ‹ Containerized
  • πŸͺ„ CI/CD (Github Action)
  • 🎭 Authentication (OAuth 2.0)
  • ⚑️ API Route Caching
  • πŸ“ Analytics

Todo

  • Add Testing

External Dependencies

  • gitleaks

Clone Template

Clone the template

bunx giget@latest gh:shba007/nuxtemplate#<branch> <project>

Change Placeholder Value

In docker-compose.yml

  • name
  • image
  • port

In package.json change the following

  • name
  • description
  • docker:build
  • docker:start

In nuxt.config.ts change the following

  • site
    • url
    • name
  • pwa
    • manifest
      • name
      • short_name
      • description
      • theme_color
      • background_color

In tailwind.config.ts change the following

  • fontFamily
    • head
    • body
  • colors
    • light
    • dark
    • primary
    • success
    • warning
    • alert

In src-tauri/Cargo.toml change the following

  • name
  • description
  • repository

In src-tauri/tauri.conf.json change the following

  • productName
  • identifier
  • app
    • windows
      • title

In .github\workflows\deploy.yml change the following

In github registry add Repo or Org Vars following

  • Vars
    • USERNAME

Change the Icons and Screenshots

dir public/pwa

Reinitialize Android

rm -rf src-tauri/gen/android bun tauri android init

set tauri.conf.json to "version": "../package.json",

Signing Config

goto src-tauri/gen/android/app/build.gradle.kts

import java.io.FileInputStream

signingConfigs {
    create("release") {
        val keystorePropertiesFile = rootProject.file("keystore.properties")
        val keystoreProperties = Properties()
        if (keystorePropertiesFile.exists()) {
            keystoreProperties.load(FileInputStream(keystorePropertiesFile))
        }

        keyAlias = keystoreProperties["keyAlias"] as String
        keyPassword = keystoreProperties["password"] as String
        storeFile = file(keystoreProperties["storeFile"] as String)
        storePassword = keystoreProperties["password"] as String
    }
}

signingConfig = signingConfigs.getByName("release")

put upload-keystore.jks, keystore.properties into src-tauri/gen/android

add those files into the .gitignore on the same folder

Generate Logo

bun tauri icon ./public/logo.svg

Development Server

Start the development server on http://localhost:3000:

How to Deploy

  1. Initialize Swarm on the Manager Node
docker swarm init --advertise-addr <MANAGER-IP>
  1. Join Worker Nodes to the Swarm
docker swarm join --token <WORKER-TOKEN> <MANAGER-IP>:2377
  1. Check Node Status
docker node ls
  1. Create a docker volume
docker volume create \
  --name nuxtemplate_static \
  --driver local \
  --opt type=none \
  --opt device=~/shba007/nuxtemplate/static \
  --opt o=bind
  1. Use Docker Stack to deploy multi-container application
upload static into /root/nuxtemplate
  1. Scale service
docker service scale nuxtemplate_app=2
  1. Verify
docker service ls
docker service ps nuxtemplate_app

License

Published under the MIT license.

About

Autonomous Next-Gen Media Operating System Integrating MWap, MConnect, MDoc, MCoordinate, MSync, MMedia, MDrive, MAssist

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Generated from shba007/nuxtemplate