Skip to content

Commit bfe57d7

Browse files
committed
Initial commit
0 parents  commit bfe57d7

Some content is hidden

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

44 files changed

+19984
-0
lines changed

.env.example

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
```env
2+
GOOGLE_CLIENT_ID=
3+
GOOGLE_CLIENT_SECRET=
4+
NEXTAUTH_URL=
5+
NEXTAUTH_SECRET=
6+
PSQL_PASS=
7+
DATABASE_URL=
8+
DISCORD_CLIENT_ID=
9+
DISCORD_CLIENT_SECRET=
10+
NEBULA_API_URL=
11+
NEBULA_API_STORAGE_BUCKET=
12+
NEBULA_API_KEY=
13+
NEBULA_API_STORAGE_KEY=
14+
```

.eslintrc.cjs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports
2+
const path = require('path');
3+
4+
/** @type {import("eslint").Linter.Config} */
5+
const config = {
6+
overrides: [
7+
{
8+
extends: [
9+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
10+
],
11+
files: ['*.ts', '*.tsx'],
12+
parserOptions: {
13+
project: path.join(__dirname, 'tsconfig.json'),
14+
},
15+
},
16+
],
17+
parser: '@typescript-eslint/parser',
18+
parserOptions: {
19+
project: path.join(__dirname, 'tsconfig.json'),
20+
},
21+
plugins: ['@typescript-eslint'],
22+
extends: ['next/core-web-vitals', 'plugin:@typescript-eslint/recommended'],
23+
rules: {
24+
'@typescript-eslint/consistent-type-imports': [
25+
'warn',
26+
{
27+
prefer: 'type-imports',
28+
fixStyle: 'inline-type-imports',
29+
},
30+
],
31+
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
32+
},
33+
};
34+
35+
module.exports = config;
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Bug Report
2+
description: File a bug report
3+
labels: ['Type: Bug Report']
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for taking the time to fill out this bug report! By giving as
9+
much detail as possible, you'll help us identify what went wrong and
10+
fixing the behavior.
11+
- type: textarea
12+
id: what-was-expected
13+
attributes:
14+
label: What did you expect to happen?
15+
description: Describe the expected functionality of the feature/component.
16+
validations:
17+
required: true
18+
- type: textarea
19+
id: what-happened
20+
attributes:
21+
label: What happened?
22+
description: |
23+
Describe the behavior you encountered. Please be as detailed as
24+
possible.
25+
placeholder: Tell us what you see!
26+
validations:
27+
required: true
28+
- type: dropdown
29+
id: version
30+
attributes:
31+
label: Version
32+
description: What version of our software are you running?
33+
options:
34+
- Pre-release (Development)
35+
validations:
36+
required: true
37+
- type: dropdown
38+
id: browsers
39+
attributes:
40+
label: What browsers are you seeing the problem on?
41+
multiple: true
42+
options:
43+
- Firefox
44+
- Chrome
45+
- Safari
46+
- Microsoft Edge
47+
- type: textarea
48+
id: logs
49+
attributes:
50+
label: Relevant log output
51+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
52+
render: shell
53+
- type: checkboxes
54+
id: terms
55+
attributes:
56+
label: Code of Conduct
57+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://about.utdnebula.com/docs/code-of-conduct/)
58+
options:
59+
- label: I agree to follow this project's Code of Conduct
60+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Project Nebula Maintainer Documentation
4+
url: https://about.utdnebula.com/
5+
about: Get information about how to contribute to the project here.
6+
- name: Report a security vulnerability
7+
8+
about: Please report security vulnerabilities here.
9+
- name: General Contact
10+
url: https://about.utdnebula.com/contact
11+
about: Get in touch for any reason using the instructions here.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Feature Request
3+
about: Think of something you would like added to this project? This is how to do it.
4+
title: ''
5+
labels: 'Type: Feature Request, Category: User Experience'
6+
assignees: ''
7+
---
8+
9+
# Overview
10+
11+
As a \_\_\_**, I should be able to \_\_\_**.
12+
13+
Describe the motivation behind your desired functionality.
14+
15+
How would you like the user experience for this feature to work?
16+
17+
# Proposal
18+
19+
Describe what changes need to be implemented to resolve this issue. Be as
20+
detailed as possible so maintainers can best determine how to implement this
21+
new feature.
22+
23+
If this feature is largge and requires mutliple parts,
24+
25+
## Supplementary Information
26+
27+
To give your feature more chance at being implemented, feel free to attach any
28+
other documentation. For something highly-user facing, a UI mock-up or some
29+
other form of wireframe is required.

.github/workflows/lint-check.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Lint and Formatting Check
2+
3+
on: push
4+
5+
jobs:
6+
main:
7+
name: Run ESLint + Prettier
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Check out Git repository
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '18'
18+
cache: 'npm'
19+
20+
- name: Run npm install
21+
run: npm ci
22+
23+
- name: Set up test environment file
24+
run: echo "GOOGLE_CLIENT_ID=dummy" > .env.local && echo "GOOGLE_CLIENT_SECRET=dummy" >> .env.local && echo "NEXTAUTH_URL=http://localhost:3000" >> .env.local && echo "NEXTAUTH_SECRET=dummy" >> .env.local && echo "DATABASE_URL=dummy" >> .env.local && echo "DISCORD_CLIENT_ID=dummy" >> .env.local && echo "DISCORD_CLIENT_SECRET=dummy" >> .env.local && echo "NEBULA_API_URL=dummy" >> .env.local && echo "NEBULA_API_STORAGE_BUCKET=dummy" >> .env.local && echo "NEBULA_API_KEY=dummy" >> .env.local && echo "NEBULA_API_STORAGE_KEY=dummy" >> .env.local && echo "SENTRY_AUTH_TOKEN=dummy" >> .env.local
25+
26+
- name: Run ESLint
27+
run: npm run lint:check
28+
29+
- name: Run Prettier
30+
run: npm run format:check

.gitignore

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
.pnpm-debug.log*
27+
28+
# local env files
29+
.env.local
30+
.env.development.local
31+
.env.test.local
32+
.env.production.local
33+
.env
34+
35+
# vercel
36+
.vercel
37+
38+
# typescript
39+
*.tsbuildinfo

.mocharc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extension": ["ts", "mjs"],
3+
"spec": "tests/**/*.ts",
4+
"require": ["ts-node/register", "source-map-support/register"],
5+
"recursive": true
6+
}

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/server/db/migrations/*

.prettierrc.mjs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* @see https://prettier.io/docs/en/configuration.html
3+
* @type {import("prettier").Config}
4+
*/
5+
const config = {
6+
printWidth: 80,
7+
semi: true,
8+
singleQuote: true,
9+
tabWidth: 2,
10+
trailingComma: 'all',
11+
useTabs: false,
12+
bracketSameLine: false,
13+
endOfLine: 'auto',
14+
plugins: ['prettier-plugin-tailwindcss'],
15+
};
16+
17+
export default config;

0 commit comments

Comments
 (0)