Skip to content

Commit

Permalink
Merge pull request #28 from BU-Spark/admin
Browse files Browse the repository at this point in the history
Feat: Implemented Auth, Events Searching, Event Info Editing, and Student Searching
  • Loading branch information
jidalii authored Nov 15, 2024
2 parents a75d00d + e8d1971 commit d3322e8
Show file tree
Hide file tree
Showing 66 changed files with 5,443 additions and 0 deletions.
28 changes: 28 additions & 0 deletions bu_arts_admin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

.VSCodeCounter/
process.env
.env
23 changes: 23 additions & 0 deletions bu_arts_admin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# BU Art Initiative Admindashboard

## 1. Get Started

1. Go to the terminal and make sure you are in `se-bu-passport-arts/bu_arts_admin`
2. Download dependencies:
```bash
$ pnpm i
```
3. Create `.env` file under `se-bu-passport-arts/bu_arts_admin` and add the following varaibles:
```text
PUBLIC_URL="/"
VITE_GOOGLE_MAPS_API_KEY="key"
VITE_FIREBASE_API_KEY="key"
VITE_FIREBASE_AUTH_DOMAIN="domain"
VITE_FIREBASE_DATABASE_URL="url"
VITE_FIREBASE_PROJECT_ID="id"
VITE_FIREBASE_STORAGE_BUCKET="bucket"
VITE_FIREBASE_MESSAGING_SENDER_ID="id"
VITE_FIREBASE_APP_ID="id"
VITE_CLERK_PUBLISHABLE_KEY="key"
```
4. Run `pnpm run dev` and you should be ready to go
28 changes: 28 additions & 0 deletions bu_arts_admin/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'

export default tseslint.config(
{ ignores: ['dist'] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
)
13 changes: 13 additions & 0 deletions bu_arts_admin/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
42 changes: 42 additions & 0 deletions bu_arts_admin/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "clerk-react",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"
},
"dependencies": {
"@clerk/clerk-react": "^5.14.0",
"@tailwindcss/typography": "^0.5.15",
"@vis.gl/react-google-maps": "^1.4.0",
"firebase": "^11.0.1",
"luxon": "^3.5.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.3.0",
"react-router-dom": "^6.27.0"
},
"devDependencies": {
"@eslint/js": "^9.13.0",
"@types/luxon": "^3.4.2",
"@types/node": "^22.9.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react-router-dom": "^5.3.3",
"@vitejs/plugin-react": "^4.3.3",
"autoprefixer": "^10.4.20",
"eslint": "^9.13.0",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.14",
"globals": "^15.11.0",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.14",
"typescript": "~5.6.2",
"typescript-eslint": "^8.11.0",
"vite": "^5.4.10"
}
}
Loading

0 comments on commit d3322e8

Please sign in to comment.