Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
MONGODB_URI = mongodb+srv://developersid20:ICoGNENuiwDgxb09@cluster-zero.ombtc.mongodb.net/?retryWrites=true&w=majority&appName=Cluster-Zero
NEXT_PUBLIC_FIREBASE_API_KEY="AIzaSyDCq32D5XwWnkfmUuCzwVxhjddWdWwgGBM"
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN="project-proposal-gen.firebaseapp.com"
NEXT_PUBLIC_FIREBASE_PROJECT_ID="project-proposal-gen"
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET="project-proposal-gen.appspot.com"
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID="447894764468"
NEXT_PUBLIC_FIREBASE_APP_ID="1:447894764468:web:c0fc85b232b3492cb290e1"
35 changes: 35 additions & 0 deletions .firebase/hosting.Lm5leHQ.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package.json,1747570635115,e3ecc54661b99f0cf5ad670f14210732a4962bbfd094aed57a853ccca5254ee3
static/chunks/polyfills.js,1747570638035,93e304855c6f9653fea1a8f24da04735f940c4a2170e5af8a5e2de396f449d07
cache/webpack/server-development/index.pack.gz.old,1747569713036,2b9665609ecffa86ac07ae72d1fd4ba1da1f7dae88200f7d1725648bc725d83c
cache/webpack/server-development/index.pack.gz,1747569786178,f22c5ae22af6b2026856e461617d932b073830a0202d8009c0c78d4b4ba4b8f3
cache/webpack/server-development/5.pack.gz,1747569786174,49ace7e269a71d6f14b54fc386ac13528ed3b56279fd8a915bac6df02c4389c7
cache/webpack/server-development/4.pack.gz,1747569713020,3b44ec5d86a13852a83e068666e4ed10781870131c1b47a923d68d3621aea12f
cache/webpack/server-development/3.pack.gz,1747569413129,1e17626dad5bccabe48686cef5f27bf481524e0a985cc8c378b7d96b574fbfee
cache/webpack/server-development/2.pack.gz,1747569636411,f0507b6e27b872311359b0986f637284017bdd2b0afe56924702e18c53962461
cache/webpack/server-development/1.pack.gz,1747569069264,8f017b66a9639150079b0dca70ba994ecbfd6fae029d740cd68ed42d60d3e0f9
cache/webpack/server-development/0.pack.gz,1747554798579,5027110a8dea48c64285a3a316e144d9c0ea81f313538143e2444f07d7689a10
cache/webpack/client-development/index.pack.gz.old,1747569729414,2f10045d08827339032e356c6f485784459f5bcf4705dd6abef81cf0f94e04a9
cache/webpack/client-development/index.pack.gz,1747570640134,072ea0c166ce2759c97b4f0b4e53e0be0d77de82c95414ba644f20e1f97dae21
cache/webpack/client-development/5.pack.gz,1747569729594,9442ce06db37735ffeb286484e4334db22779b7286e4577a77352bec994e55f8
cache/webpack/client-development/4.pack.gz,1747569576393,74a857fbdb0c03b664f5242b1ab4ca3733a4105d69f01c4145e5f9ff79f138c4
cache/webpack/client-development/3.pack.gz,1747569653814,7f2b770e0be273850de77d7a32b18a914642b442c35de311557d52fe57f67a29
cache/webpack/client-development/2.pack.gz,1747569355975,bfd89cbb76a4858ec1778e2ca7f43c479283b07d9707ff0a4a9922b8b47be4cb
cache/webpack/client-development/1.pack.gz,1747569576027,814e1cec61bd67c92ddfdd13b5c96feb53669c4a8708d5bffde34ddc5bd035b6
cache/webpack/client-development/0.pack.gz,1747570640107,adb4895f44bec872fe63a45d1bd8d795ce6c97fa18a47c371f4ad2eaefb78aff
build-manifest.json,1747571279895,854e4a8d629c7ca30b2b86059016ca29f9a50a4d23e5bbcfb4377f13ac50bfd1
react-loadable-manifest.json,1747571279894,c48af1e2b469cf8c869097540babee7b3e9810571595fb4a312b69e12a372a8a
app-build-manifest.json,1747571279895,5a51aa18a2a4b60b63b8c10b14701246196af8ba1fdd74e40ea42c86cb9c321d
types/package.json,1747571279930,67fd8969c85e020b743de43c2e40482c292fa1487964b76d095a9f7aa2702ae6
static/development/_ssgManifest.js,1747571279895,89d3d8d2aeba4bad62062a0262dfcde3942d6d97c4eeed5f60aefa7ac91b750a
server/server-reference-manifest.json,1747571279929,d53f8503be2657c3d9031a184ce9c46c933e2c60758d7c25202e27ea7f5da92b
static/development/_buildManifest.js,1747571279895,798686cb1cb54d5fa8b498c565f9bbb4fed2fe4a3ae710fc5138a6b2c92c559d
trace,1747571279940,7643e8547796abbca96afa336e34deee6cab39896b9729c77ce6bedd9dd5dd1f
server/server-reference-manifest.js,1747571279930,8f47e720d684ee71fc00cccbb4e9bb975c8210896851e75b24c8861c3fab92ec
server/pages-manifest.json,1747571279928,c48af1e2b469cf8c869097540babee7b3e9810571595fb4a312b69e12a372a8a
server/next-font-manifest.json,1747571279897,317fb1b7edc9e6f9bd2747742561bd86853b0bb773f6c4c9cc2c85d0dade509b
server/next-font-manifest.js,1747571279897,1050ef8cdda8c0d56362626264d5fb35d6570c1b5b7ff9ba3aac9f5094b7d264
server/middleware-react-loadable-manifest.js,1747571279895,47923e275f205cd977ef26e090262fe28134cc9b60d0c477467458bcf216b8a8
server/interception-route-rewrite-manifest.js,1747571279928,cd2087cc6225db411e882d55401f93fc0a3b926ea0be6f862500955cfd093fe0
server/app-paths-manifest.json,1747571279929,c48af1e2b469cf8c869097540babee7b3e9810571595fb4a312b69e12a372a8a
server/middleware-manifest.json,1747571279928,273a07c6e8011708656a708a4c12beb0557583b3a1bc7de42e5b3e3c916233d6
server/middleware-build-manifest.js,1747571279896,0bea9a3345969a6bccc2f06b29e8bbdc69221e0c4104e80cf9da9f5f6dc2f3e9
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "project-proposal-gen"
}
}
20 changes: 20 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
on:
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_PROJECT_PROPOSAL_GEN }}
channelId: live
projectId: project-proposal-gen
21 changes: 21 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
on: pull_request
permissions:
checks: write
contents: read
pull-requests: write
jobs:
build_and_preview:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_PROJECT_PROPOSAL_GEN }}
projectId: project-proposal-gen
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-opti

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

Expand All @@ -34,3 +34,13 @@ You can check out [the Next.js GitHub repository](https://github.com/vercel/next
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

## Firebase CLI commands

To setup github workflow and firebase config files, following command to be used:

```bash
firebase init
```

Options selected: firestore, hosting, github workflow
14 changes: 14 additions & 0 deletions apphosting.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
env:
# Get these values from the Firebase console
- variable: NEXT_PUBLIC_FIREBASE_API_KEY
value: "AIzaSyDCq32D5XwWnkfmUuCzwVxhjddWdWwgGBM"
- variable: NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN
value: "project-proposal-gen.firebaseapp.com"
- variable: NEXT_PUBLIC_FIREBASE_PROJECT_ID
value: "project-proposal-gen"
- variable: NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET
value: "project-proposal-gen.firebasestorage.app"
- variable: NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID
value: "447894764468"
- variable: NEXT_PUBLIC_FIREBASE_APP_ID
value: "1:447894764468:web:c0fc85b232b3492cb290e1"
20 changes: 20 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"firestore": {
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
},
"hosting": {
"public": ".next",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
4 changes: 4 additions & 0 deletions firestore.indexes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"indexes": [],
"fieldOverrides": []
}
19 changes: 19 additions & 0 deletions firestore.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
rules_version = '2';

service cloud.firestore {
match /databases/{database}/documents {

// This rule allows anyone with your Firestore database reference to view, edit,
// and delete all data in your Firestore database. It is useful for getting
// started, but it is configured to expire after 30 days because it
// leaves your app open to attackers. At that time, all client
// requests to your Firestore database will be denied.
//
// Make sure to write security rules for your app before that time, or else
// all client requests to your Firestore database will be denied until you Update
// your rules
match /{document=**} {
allow read, write: if request.time < timestamp.date(2025, 9, 29);
}
}
}
Loading