Skip to content

Commit ae88be5

Browse files
Claudio La Barberathebatclaudio
Claudio La Barbera
authored andcommitted
init
0 parents  commit ae88be5

38 files changed

+5229
-0
lines changed

.env.example

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
VITE_ENV="development"
2+
VITE_TELEGRAM_BOT_URL=""
3+
VITE_TELEGRAM_MANIFEST_URL=""
4+
VITE_JETTON_SYMBOL=""
5+
VITE_TON_CONTRACT_ADDRESS=""
6+
VITE_API_BASE_URL="https://example-api.com/api"

.env.production

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
VITE_ENV="development"
2+
VITE_TELEGRAM_BOT_URL="https://t.me/DisclosureGameBot"
3+
VITE_TELEGRAM_MANIFEST_URL="https://thebatclaudio.github.io/ton-dapp-vue-template/tonconnect-manifest.json"
4+
VITE_JETTON_SYMBOL="COIN"
5+
VITE_TON_CONTRACT_ADDRESS="UQCxB9fUfl5s2s2J8IClW8cvSPoCpp3G1EXcu_j3kfjUhO0K"
6+
VITE_API_BASE_URL="http://localhost/api"

.github/workflows/static.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy static content to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ['main']
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow one concurrent deployment
19+
concurrency:
20+
group: 'pages'
21+
cancel-in-progress: true
22+
23+
jobs:
24+
# Single deploy job since we're just deploying
25+
deploy:
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v3
33+
- name: Setup Node
34+
uses: actions/setup-node@v3
35+
with:
36+
node-version: 18
37+
cache: 'npm'
38+
cache-dependency-path: './'
39+
- name: Install dependencies
40+
run: npm install
41+
- name: Copy .env.production to .env
42+
run: cp .env.production .env
43+
- name: Build
44+
run: npm run build
45+
- name: Setup Pages
46+
uses: actions/configure-pages@v3
47+
- name: Upload artifact
48+
uses: actions/upload-pages-artifact@v1
49+
with:
50+
path: './dist'
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v1

.gitignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
.env

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v21.7.2

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar"]
3+
}

Dockerfile

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Stage 1: Build the Vue.js application
2+
FROM node:20-alpine as build-stage
3+
4+
# Set the working directory
5+
WORKDIR /app
6+
7+
# Copy the package.json and package-lock.json
8+
COPY package*.json ./
9+
10+
# Install dependencies
11+
RUN npm install
12+
13+
# Copy the rest of the application
14+
COPY . .
15+
16+
# Copy the env file
17+
COPY .env.production .env
18+
19+
# Build the application
20+
RUN npm run build
21+
22+
# Stage 2: Serve the application with Nginx
23+
FROM nginx:alpine
24+
25+
# Copy the built application from the build stage
26+
COPY --from=build-stage /app/dist /usr/share/nginx/html
27+
28+
# Copy the custom Nginx configuration file
29+
COPY docker/nginx.conf /etc/nginx/nginx.conf
30+
31+
# Expose port 80
32+
EXPOSE 80
33+
34+
# Command to run Nginx
35+
CMD ["nginx", "-g", "daemon off;"]

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Vue 3 + TypeScript + Vite
2+
3+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4+
5+
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
6+
# ton-dapp-vue-template

docker-compose.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: '3.8'
2+
3+
services:
4+
disclosuregame-app:
5+
build:
6+
context: .
7+
dockerfile: Dockerfile
8+
expose:
9+
- 80
10+
environment:
11+
VIRTUAL_HOST: disclosuregame.thebatclaud.io
12+
LETSENCRYPT_HOST: disclosuregame.thebatclaud.io
13+
volumes:
14+
- .:/app
15+
- /app/node_modules
16+
networks:
17+
- nginx-proxy
18+
19+
networks:
20+
nginx-proxy:
21+
external: true

docker/nginx.conf

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
events {
2+
worker_connections 1024;
3+
}
4+
5+
http {
6+
include mime.types;
7+
default_type application/octet-stream;
8+
9+
server {
10+
listen 80;
11+
server_name localhost;
12+
13+
location / {
14+
root /usr/share/nginx/html;
15+
try_files $uri $uri/ /index.html;
16+
}
17+
18+
error_page 500 502 503 504 /50x.html;
19+
location = /50x.html {
20+
root /usr/share/nginx/html;
21+
}
22+
}
23+
}

index.html

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/icon.png" />
6+
<meta
7+
name="viewport"
8+
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
9+
/>
10+
<title>TON DApp Vue Template</title>
11+
</head>
12+
<body class="bg-gray-950 text-white h-screen select-none">
13+
<div id="app" class="h-full"></div>
14+
<script type="module" src="/src/main.ts"></script>
15+
</body>
16+
</html>

0 commit comments

Comments
 (0)