Skip to content

Commit b78f09a

Browse files
Restructure project to monorepo format
1 parent 7ebfd25 commit b78f09a

81 files changed

Lines changed: 498 additions & 33 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.

README.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +0,0 @@
1-
# hackncsu_today
2-
3-
A new Flutter project.
4-
5-
## Getting Started
6-
7-
This project is a starting point for a Flutter application.
8-
9-
A few resources to get you started if this is your first Flutter project:
10-
11-
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12-
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13-
14-
For help getting started with Flutter development, view the
15-
[online documentation](https://docs.flutter.dev/), which offers tutorials,
16-
samples, guidance on mobile development, and a full API reference.

firebase/.firebaserc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "hackncsu-today"
4+
}
5+
}

firebase/.gitignore

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
firebase-debug.log*
8+
firebase-debug.*.log*
9+
10+
# Firebase cache
11+
.firebase/
12+
13+
# Firebase config
14+
15+
# Uncomment this if you'd like others to create their own Firebase project.
16+
# For a team working on the same Firebase project(s), it is recommended to leave
17+
# it commented so all members can deploy to the same project(s) in .firebaserc.
18+
# .firebaserc
19+
20+
# Runtime data
21+
pids
22+
*.pid
23+
*.seed
24+
*.pid.lock
25+
26+
# Directory for instrumented libs generated by jscoverage/JSCover
27+
lib-cov
28+
29+
# Coverage directory used by tools like istanbul
30+
coverage
31+
32+
# nyc test coverage
33+
.nyc_output
34+
35+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
36+
.grunt
37+
38+
# Bower dependency directory (https://bower.io/)
39+
bower_components
40+
41+
# node-waf configuration
42+
.lock-wscript
43+
44+
# Compiled binary addons (http://nodejs.org/api/addons.html)
45+
build/Release
46+
47+
# Dependency directories
48+
node_modules/
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Optional REPL history
57+
.node_repl_history
58+
59+
# Output of 'npm pack'
60+
*.tgz
61+
62+
# Yarn Integrity file
63+
.yarn-integrity
64+
65+
# dotenv environment variables file
66+
.env
67+
68+
# dataconnect generated files
69+
.dataconnect
70+
71+
*.json

firebase/firestore.rules

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
rules_version = '2';
2+
3+
service cloud.firestore {
4+
match /databases/{database}/documents {
5+
// Organizers have full admin access
6+
allow read, write: if request.auth.token.isOrganizer == true;
7+
8+
match /users/{userId} {
9+
// Only the authenticated user can read or write their own data.
10+
allow read, write: if request.auth.uid == userId;
11+
12+
// Organizers have full admin access
13+
allow read, write: if request.auth.token.isOrganizer == true;
14+
}
15+
16+
match /teams/{teamId} {
17+
// Team members can read the entire team document.
18+
allow read: if request.auth.uid in resource.data.memberIds;
19+
20+
// Team members can only write to the 'checklist' field.
21+
// This rule prevents them from changing other fields like the team name or member list.
22+
allow write: if request.auth.uid in resource.data.memberIds &&
23+
request.resource.data.diff(resource.data).affectedKeys().hasOnly(['checklist']);
24+
25+
// Organizers have full admin access
26+
allow read, write: if request.auth.token.isOrganizer == true;
27+
}
28+
29+
match /event/{data} {
30+
// Anyone can read event data.
31+
allow read;
32+
33+
// Organizers have full admin access
34+
allow read, write: if request.auth.token.isOrganizer == true;
35+
}
36+
}
37+
}

firebase/functions/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Python bytecode
2+
__pycache__/
3+
4+
# Python virtual environment
5+
venv/
6+
*.local

firebase/functions/auth/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)