Skip to content

Commit

Permalink
chore: init repository
Browse files Browse the repository at this point in the history
  • Loading branch information
brckd committed Oct 9, 2024
0 parents commit a4f5432
Show file tree
Hide file tree
Showing 14 changed files with 9,582 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release version

on:
push:
branches: main

permissions:
contents: write
issues: read

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# dependencies
node_modules/

# build output
dist/

# deployment
.astro/
.drizzle/
.netlify/

# environment variables
.env
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no-install commitlint --edit $1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
18 changes: 18 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# The MIT License (MIT)

Copyright © `2024` `The Fancade Club`

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the “Software”), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Fancade Club Account

Account management for members of the Fancade Club.

## Building

You'll need `git`, `node 18+` and `npm` to get started.

```sh
# Cloning the repository
git clone https://github.com/fancade-club/account
cd ./club

# Installing dependencies
npm ci

# Running the development server
npm run dev
```

## Hosting

The Fancade Club uses [Netlify](https://netlify.com) and [Neon](https://neon.tech) to provide its services for free. For setting up these or other providers, see [Astro adapters](https://docs.astro.build/en/guides/server-side-rendering/) and [Drizzle setup](https://orm.drizzle.team/docs/get-started).

## Disclaimer

We are not affiliated with Fancade. See [our disclaimer](https://fancade.club/disclaimer). For inquiries please [contact us](https://fancade.club/contact).
15 changes: 15 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineConfig, envField } from "astro/config";
import netlify from "@astrojs/netlify";

export default defineConfig({
env: {
schema: {
DATABASE_URL: envField.string({ context: "server", access: "secret" }),
},
},
security: {
checkOrigin: import.meta.env.PROD,
},
adapter: import.meta.env.PROD ? netlify() : undefined,
output: "server",
});
11 changes: 11 additions & 0 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import "dotenv/config";
import { defineConfig } from "drizzle-kit";

export default defineConfig({
out: "./.drizzle",
schema: "./src/lib/db/schema.ts",
dialect: "postgresql",
dbCredentials: {
url: process.env.DATABASE_URL!,
},
});
7 changes: 7 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
);
Loading

0 comments on commit a4f5432

Please sign in to comment.