Skip to content

Commit aae39af

Browse files
committed
next -> custom
1 parent 0668dcf commit aae39af

131 files changed

Lines changed: 3626 additions & 2043 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
**/*.DS_Store
2+
**/*.env*
3+
**/*.git*
4+
**/.vscode
5+
**/node_modules
6+
**/public
7+
.dockerignore
8+
Dockerfile
9+
fly.toml
10+
lefthook.yml
11+
LICENSE
12+
README.md

.editorconfig

Lines changed: 0 additions & 21 deletions
This file was deleted.

.env.example

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#########################################################################################################################################
2+
# #
3+
# to configure the app, create a .env file in the root directory of the project and set any of the following environment variables: #
4+
# #
5+
#########################################################################################################################################
6+
7+
# determines whether the app runs in development or production mode
8+
# the app will run in development mode unless either 'BUN_ENV' or 'NODE_ENV' is explicitly set to 'production'
9+
# default: development mode
10+
BUN_ENV=development
11+
12+
# the port the elysia http server runs on (make sure to keep consistent with Dockerfile and fly.toml, if applicable)
13+
# default: 3000
14+
PORT=3000
15+
16+
# the port the socket.io websocket server runs on (make sure to keep consistent with Dockerfile and fly.toml, if applicable)
17+
# default: 3001
18+
WS_PORT=3001
19+
20+
# the host url of the app - MUST BE SET IN PRODUCTION to whitelist domain in socket.io server CORS config (i.e. https://my-prod-url.com)
21+
# default: http://localhost
22+
HOST=http://localhost
23+
24+
# the url of the discit-api server
25+
# default: http://localhost:5000
26+
API_URL==http://localhost:5000

.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitattributes

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
###############################
2-
# Git Line Endings #
3-
###############################
4-
5-
# Set default behaviour to automatically normalize line endings.
6-
* text=auto eol=crlf
7-
8-
# Force batch scripts to always use CRLF line endings so that if a repo is accessed
9-
# in Windows via a file share from Linux, the scripts will work.
10-
*.{cmd,[cC][mM][dD]} text eol=crlf
11-
*.{bat,[bB][aA][tT]} text eol=crlf
12-
13-
# Force bash scripts to always use LF line endings so that if a repo is accessed
14-
# in Unix via a file share from Windows, the scripts will work.
15-
*.sh text eol=lf
16-
.husky/* text eol=lf
17-
18-
# Isolate binary files in case the auto-detection algorithm fails and
19-
# marks them as text files (which could brick them).
1+
* text=auto eol=lf
2+
*.{cmd,bat} text eol=crlf
203
*.{png,jpg,jpeg,gif,webp,ttf,woff,woff2} binary

.github/workflows/cicd.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
name: cicd
22

3-
env:
4-
API_URL: ${{ secrets.API_URL }}
5-
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
6-
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
7-
83
on:
94
push:
105
branches: ["*"]
116
pull_request:
127
branches: ["*"]
138

149
jobs:
15-
lint:
16-
name: install, lint, build
10+
cicd:
1711
runs-on: ubuntu-latest
1812
steps:
1913
- uses: actions/checkout@v3
20-
- uses: oven-sh/setup-bun@v1
14+
- uses: oven-sh/setup-bun@v2
2115
with:
2216
bun-version: latest
23-
24-
- run: bun i --ignore-scripts
25-
- run: bun run lint
26-
- run: bun run build
17+
- run: bun install --ignore-scripts --frozen-lockfile
18+
- run: bun run biome ci .
19+
- run: bun run build:prod
20+
- run: bun run compile

.github/workflows/deploy.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: deploy
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
env:
8+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
environment: discit.app
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: superfly/flyctl-actions/setup-flyctl@master
17+
- run: flyctl deploy --remote-only --detach --no-cache --config fly.toml --build-secret API_KEY=${{ secrets.API_KEY }}

.gitignore

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,5 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
4-
/node_modules
5-
/.pnp
6-
.pnp.js
7-
.yarn/install-state.gz
8-
9-
# testing
10-
/coverage
11-
12-
# next.js
13-
/.next/
14-
/out/
15-
16-
# production
17-
/build
18-
19-
# misc
1+
node_modules/
2+
public/
203
.DS_Store
21-
*.pem
22-
23-
# debug
24-
npm-debug.log*
25-
yarn-debug.log*
26-
yarn-error.log*
27-
28-
# env files (can opt-in for commiting if needed)
29-
.env*
30-
31-
# vercel
32-
.vercel
33-
34-
# typescript
35-
*.tsbuildinfo
36-
next-env.d.ts
37-
38-
/public/**/*.js
39-
/public/**/*.js.map
4+
.env
5+
/main*

.prettierignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.prettierrc.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)