-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7eee33e
Showing
55 changed files
with
6,633 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# build output | ||
dist/ | ||
|
||
# generated types | ||
.astro/ | ||
|
||
# dependencies | ||
node_modules/ | ||
|
||
# logs | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
# environment variables | ||
.env | ||
.env.production | ||
|
||
# macOS-specific files | ||
.DS_Store | ||
|
||
# jetbrains setting folder | ||
.idea/ | ||
.vercel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"recommendations": ["astro-build.astro-vscode", "esbenp.prettier-vscode"], | ||
"unwantedRecommendations": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"command": "./node_modules/.bin/astro dev", | ||
"name": "Development server", | ||
"request": "launch", | ||
"type": "node-terminal" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Astro Starter Kit: Basics | ||
|
||
```sh | ||
npm create astro@latest -- --template basics | ||
``` | ||
|
||
[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics) | ||
[](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics) | ||
[](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json) | ||
|
||
> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun! | ||
 | ||
|
||
## 🚀 Project Structure | ||
|
||
Inside of your Astro project, you'll see the following folders and files: | ||
|
||
```text | ||
/ | ||
├── public/ | ||
│ └── favicon.svg | ||
├── src/ | ||
│ ├── layouts/ | ||
│ │ └── Layout.astro | ||
│ └── pages/ | ||
│ └── index.astro | ||
└── package.json | ||
``` | ||
|
||
To learn more about the folder structure of an Astro project, refer to [our guide on project structure](https://docs.astro.build/en/basics/project-structure/). | ||
|
||
## 🧞 Commands | ||
|
||
All commands are run from the root of the project, from a terminal: | ||
|
||
| Command | Action | | ||
| :------------------------ | :----------------------------------------------- | | ||
| `npm install` | Installs dependencies | | ||
| `npm run dev` | Starts local dev server at `localhost:4321` | | ||
| `npm run build` | Build your production site to `./dist/` | | ||
| `npm run preview` | Preview your build locally, before deploying | | ||
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | | ||
| `npm run astro -- --help` | Get help using the Astro CLI | | ||
|
||
## 👀 Want to learn more? | ||
|
||
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// @ts-check | ||
import vercel from "@astrojs/vercel"; | ||
import mdx from "@astrojs/mdx"; | ||
import { defineConfig } from "astro/config"; | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
adapter: vercel({ | ||
imageService: true, | ||
}), | ||
integrations: [mdx()], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,215 @@ | ||
services: | ||
# The Node instance for the Whitelist | ||
rose-whitelist: | ||
build: | ||
context: repos/whitelist/ | ||
dockerfile: Dockerfile | ||
image: node:23-slim | ||
container_name: rose-whitelist | ||
working_dir: /app | ||
volumes: | ||
- ./repos/whitelist/:/app/ | ||
entrypoint: ["npm", "run", "start"] | ||
ports: | ||
- "80" | ||
|
||
# The Node instance for the Project Rosé website | ||
rose-website: | ||
image: node:23-slim | ||
container_name: rose-website | ||
working_dir: /app | ||
volumes: | ||
- ./repos/prod/website/:/app/ | ||
entrypoint: ["npm", "run", "start"] | ||
ports: | ||
- "80" | ||
|
||
# The Deno instance for the Project Rosé Clefairy Discord Bot | ||
rose-clefairy-bot: | ||
image: denoland/deno:2.0.0 | ||
container_name: Clefairy | ||
working_dir: /app | ||
volumes: | ||
- ./repos/prod/Clefairy/:/app/ | ||
entrypoint: ["deno", "run", "production"] | ||
|
||
# The Node instance for TVii Development (d1) | ||
rose-tvii-dev: | ||
build: | ||
context: repos/dev/tvii/ | ||
dockerfile: Dockerfile | ||
image: node:23-slim | ||
container_name: rose-tvii-dev | ||
working_dir: /app | ||
volumes: | ||
- ./repos/dev/tvii/:/app/ | ||
entrypoint: ["npm", "run", "start"] | ||
ports: | ||
- "80" | ||
|
||
# The Node instance for TVii ACR Development (d1) | ||
rose-tvii-acr-dev: | ||
build: | ||
context: repos/dev/tvii-acr/ | ||
dockerfile: Dockerfile | ||
image: node:23-slim | ||
container_name: rose-tvii-acr-dev | ||
working_dir: /app | ||
volumes: | ||
- ./repos/dev/tvii-acr/:/app/ | ||
entrypoint: ["npm", "run", "start"] | ||
ports: | ||
- "80" | ||
|
||
# The Node instance for TVii Production (l1) | ||
rose-tvii: | ||
build: | ||
context: repos/prod/tvii/ | ||
dockerfile: Dockerfile | ||
image: node:23-slim | ||
container_name: rose-tvii | ||
working_dir: /app | ||
volumes: | ||
- ./repos/prod/tvii/:/app/ | ||
entrypoint: ["npm", "run", "start"] | ||
ports: | ||
- "80" | ||
|
||
# The Node instance for TVii ACR Production (l1) | ||
rose-tvii-acr: | ||
build: | ||
context: repos/prod/tvii-acr/ | ||
dockerfile: Dockerfile | ||
image: node:23-slim | ||
container_name: rose-tvii-acr | ||
working_dir: /app | ||
volumes: | ||
- ./repos/prod/tvii-acr/:/app/ | ||
entrypoint: ["npm", "run", "start"] | ||
ports: | ||
- "80" | ||
|
||
# The Node instance for TVii Staging (stg1/stg.l1) | ||
rose-tvii-stg: | ||
build: | ||
context: repos/stg/tvii/ | ||
dockerfile: Dockerfile | ||
image: node:23-slim | ||
container_name: rose-tvii-stg | ||
working_dir: /app | ||
volumes: | ||
- ./repos/stg/tvii/:/app/ | ||
entrypoint: ["npm", "run", "start"] | ||
ports: | ||
- "80" | ||
|
||
# The Node instance for TVii ACR Staging (stg1/stg.l1) | ||
rose-tvii-acr-stg: | ||
build: | ||
context: repos/stg/tvii-acr/ | ||
dockerfile: Dockerfile | ||
image: node:23-slim | ||
container_name: rose-tvii-acr-stg | ||
working_dir: /app | ||
volumes: | ||
- ./repos/stg/tvii-acr/:/app/ | ||
entrypoint: ["npm", "run", "start"] | ||
ports: | ||
- "80" | ||
|
||
# Nginx (Reverse Proxy) | ||
nginx: | ||
image: nginx:latest | ||
container_name: nginx | ||
depends_on: | ||
- rose-website | ||
- rose-tvii | ||
- rose-tvii-acr | ||
- rose-tvii-stg | ||
- rose-tvii-acr-stg | ||
- rose-tvii-dev | ||
- rose-tvii-acr-dev | ||
- rose-whitelist | ||
- db | ||
- adminer | ||
volumes: | ||
- ./config/nginx.conf:/etc/nginx/nginx.conf | ||
- ./certs/:/opt/certs/ | ||
- ./config/:/opt/config/ | ||
ports: | ||
- "80:80" | ||
- "443:443" | ||
- "8443:8443" | ||
|
||
# Database (Postgres) | ||
db: | ||
image: postgres:latest | ||
container_name: my-postgres | ||
restart: always | ||
environment: | ||
POSTGRES_USER: projectrose | ||
POSTGRES_PASSWORD: projectrose | ||
POSTGRES_ROOT_PASSWORD: projectrose # Not what we actually use in prod | ||
volumes: | ||
# - "./mariadb-data:/var/lib/mysql" | ||
- "./postgres-data:/var/lib/mysql" | ||
ports: | ||
#- "3306:3306" | ||
- "5432:5432" | ||
|
||
# phpMyAdmin (Database Viewer and Manager) | ||
# phpmyadmin: | ||
# image: elestio/pgadmin:latest | ||
# restart: always | ||
# ports: | ||
# - "80" | ||
# environment: | ||
# - PMA_ARBITRARY=1 | ||
# PGADMIN_DEFAULT_EMAIL: [email protected] | ||
# PGADMIN_DEFUALT_PASSWORD: projectrose | ||
|
||
adminer: | ||
image: adminer:latest | ||
container_name: rose-adminer | ||
restart: always | ||
ports: | ||
- "80" | ||
- "8080" | ||
umami: | ||
image: ghcr.io/umami-software/umami:postgresql-latest | ||
ports: | ||
- "3000:3000" | ||
environment: | ||
DATABASE_URL: postgresql://umami:umami@db:5432/umami | ||
DATABASE_TYPE: postgresql | ||
APP_SECRET: replace-me-with-a-random-string | ||
depends_on: | ||
umami-db: | ||
condition: service_healthy | ||
init: true | ||
restart: always | ||
healthcheck: | ||
test: ["CMD-SHELL", "curl http://localhost:3000/api/heartbeat"] | ||
interval: 5s | ||
timeout: 5s | ||
retries: 5 | ||
umami-db: | ||
image: postgres:15-alpine | ||
environment: | ||
POSTGRES_DB: umami | ||
POSTGRES_USER: umami | ||
POSTGRES_PASSWORD: umami | ||
volumes: | ||
- umami-db-data:/var/lib/postgresql/data | ||
restart: always | ||
healthcheck: | ||
test: | ||
[ | ||
"CMD-SHELL", | ||
"pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}", | ||
] | ||
interval: 5s | ||
timeout: 5s | ||
retries: 5 | ||
volumes: | ||
umami-db-data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "rose-site", | ||
"type": "module", | ||
"version": "0.0.1", | ||
"scripts": { | ||
"dev": "astro dev", | ||
"build": "astro build", | ||
"preview": "astro preview", | ||
"astro": "astro" | ||
}, | ||
"devDependencies": { | ||
"prettier": "^3.4.2", | ||
"prettier-plugin-astro": "^0.14.1" | ||
}, | ||
"dependencies": { | ||
"@astrojs/mdx": "^4.0.8", | ||
"@astrojs/vercel": "^8.0.2", | ||
"@libsql/client": "^0.14.0", | ||
"@vercel/analytics": "^1.4.1", | ||
"@vercel/speed-insights": "^1.1.0", | ||
"astro": "^5.1.8", | ||
"astro-font": "^1.0.0", | ||
"autoprefixer": "^10.4.20", | ||
"postcss": "^8.5.1", | ||
"sass": "^1.83.4" | ||
} | ||
} |
Oops, something went wrong.