Skip to content

Commit

Permalink
Merge pull request #161 from foss-labs/dev
Browse files Browse the repository at this point in the history
feat: v1 upstream main
  • Loading branch information
DarkPhoenix2704 authored Jun 8, 2024
2 parents 3b7b275 + 4adc9cd commit b864c68
Show file tree
Hide file tree
Showing 215 changed files with 25,184 additions and 16,976 deletions.
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,40 @@ apps/api/.turbo
apps/app/.turbo


.turbo


# Local .terraform directories
**/.terraform/*

# .tfstate files
*.tfstate
*.tfstate.*

# Crash log files
crash.log
crash.*.log

# Exclude all .tfvars files, which are likely to contain sensitive data, such as
# password, private keys, and other secrets. These should not be part of version
# control as they are data points which are potentially sensitive and subject
# to change depending on the environment.
*.tfvars
*.tfvars.json

# Ignore override files as they are usually used to override resources locally and so
# are not checked in
override.tf
override.tf.json
*_override.tf
*_override.tf.json

# Include override files you do wish to add to version control using negated pattern
# !example_override.tf

# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*

# Ignore CLI configuration files
.terraformrc
terraform.rc
5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 49 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 48 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,60 @@ FossFolio is an open source web application for people to Find, Host and Manage
</ol>
</details>

## Find Hackathons

Users can go to the website and see a directory of all the published hackathons which are ongoing and upcoming. Users can find the ones they like to join and register for the event on the site by filling in the necessary information. Users get a dashboard where the can see all the hackathons they've registered for and options to edit their profile information.
## How to run locally

## Host Hackathons
### Install pnpm globally

```bash
npm i -g pnpm
```

### Install all local dependencies

```bash
pnpm install
```

### Install docker and run

```bash
docker compose up
```
### Migrate prisma and seed the db

```bash
pnpm --filter api prisma migrate dev
pnpm --filter api db:seed
```
### Run client and server

```bash
pnpm --filter web dev

pnpm --filter api nest:dev
```




# Website Pages Showcase

<!-- First Row -->
<div align="start">
<img src="./packages/docs/all-events.png" alt="Page 1" width="300" />
<img src="./packages/docs/editor.png" alt="Page 2" width="300" />
<img src="./packages/docs/event.png" alt="Page 3" width="300" />
<img src="./packages/docs/members.png" alt="Page 3" width="300" />
<img src="./packages/docs/orgs.png" alt="Page 4" width="300" />
<img src="./packages/docs/particpents.png" alt="Page 5" width="300" />
<img src="./packages/docs/profile.png" alt="Page 6" width="300" />
<img src="./packages/docs/settings.png" alt="Page 6" width="300" />
</div>

Users who want to host hackathons can use the "Create Hackathon" option and fill in the necessary details in a form and publish the event. Upon publishing everyone can see that event on the site.

### Managing Created Hackathons

Users who are hosting hackathons will get a detailed dashboard that displays the following data:

- Total number of participants
- Total number of teams
- Number of student and professional applicants
- List of all the participants and teams with details of participants

<p align="right">(<a href="#top">back to top</a>)</p>

Expand Down
14 changes: 13 additions & 1 deletion apps/api/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,16 @@ [email protected]
MAIL_HOST=
MAIL_PASSWORD=
MAIL_PORT=587
MAIL_USER=
MAIL_USER=


AWS_ACCESS_KEY = ''
AWS_SECRET_KEY = ''
AWS_REGION = ""



STRIPE_SECRET_KEY = ""
STRIPE_WEBHOOK_SECRET = ""

AI_KEY = ""
25 changes: 25 additions & 0 deletions apps/api/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
declare namespace NodeJS {
export interface ProcessEnv {
DATABASE_URL: string;
GITHUB_CLIENT_ID: string;
GITHUB_CLIENT_SECRET: string;
GITHUB_CALLBACK_URL: string;
GITHUB_SCOPE: string;
ACCESS_TOKEN_VALIDITY: string;
API_BASE_URL: string;
GOOGLE_CLIENT_ID: string;
GOOGLE_CLIENT_SECRET: string;
GOOGLE_CALLBACK_URL: string;
GOOGLE_SCOPE: string;
WEB_URL: string;
MAIL_HOST: string;
MAIL_PORT: number;
MAIL_USER: string;
MAIL_PASSWORD: string;
AWS_ACCESS_KEY: string;
AWS_SECRET_KEY: string;
AWS_REGION: string;
STRIPE_SECRET_KEY: string;
STRIPE_WEBHOOK_SECRET: string;
}
}
95 changes: 52 additions & 43 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,60 +16,69 @@
"db:studio": "prisma studio",
"db:migrate": "prisma migrate dev",
"dev": "concurrently \"pnpm --filter api nest:dev\" \"pnpm --filter api db:studio\"",
"email": "email dev"
"email": "email dev",
"db:seed": "ts-node prisma/seed.ts"
},
"dependencies": {
"@nestjs-modules/mailer": "^1.9.1",
"@nestjs/common": "^10.0.5",
"@nestjs/config": "^3.0.0",
"@nestjs/core": "^10.0.5",
"@nestjs/event-emitter": "^2.0.3",
"@nestjs/jwt": "^10.1.0",
"@nestjs/passport": "^10.0.0",
"@nestjs/platform-express": "^10.0.5",
"@nestjs/schematics": "^10.0.1",
"@nestjs/swagger": "^7.1.4",
"@nestjs/throttler": "^5.1.1",
"@prisma/client": "^5.0.0",
"@aws-sdk/client-s3": "^3.521.0",
"@nestjs-modules/mailer": "^1.11.0",
"@nestjs/common": "^10.3.3",
"@nestjs/config": "^3.2.0",
"@nestjs/core": "^10.3.3",
"@nestjs/event-emitter": "^2.0.4",
"@nestjs/jwt": "^10.2.0",
"@nestjs/passport": "^10.0.3",
"@nestjs/platform-express": "^10.3.3",
"@nestjs/schematics": "^10.1.1",
"@nestjs/swagger": "^7.3.0",
"@nestjs/throttler": "^5.1.2",
"@node-saml/passport-saml": "^5.0.0",
"@prisma/client": "^5.10.2",
"@webtre/nestjs-mailer-react-adapter": "^0.1.2",
"argon2": "^0.30.3",
"argon2": "^0.40.1",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"class-validator": "^0.14.1",
"cookie-parser": "^1.4.6",
"express-session": "^1.17.3",
"joi": "^17.9.2",
"nestjs-pino": "^3.3.0",
"nodemailer": "^6.9.7",
"passport": "^0.6.0",
"express": "^4.19.2",
"express-session": "^1.18.0",
"joi": "^17.12.2",
"nestjs-pino": "^4.0.0",
"nodemailer": "^6.9.10",
"openai": "^4.33.0",
"passport": "^0.7.0",
"passport-github2": "^0.1.12",
"passport-google-oauth20": "^2.0.0",
"passport-jwt": "^4.0.1",
"pino-http": "^8.3.3",
"pino-pretty": "^10.0.1",
"reflect-metadata": "^0.1.13",
"resend": "^1.0.0",
"rimraf": "^5.0.1",
"rxjs": "^7.8.1"
"pino-http": "^9.0.0",
"pino-pretty": "^10.3.1",
"prisma-dbml-generator": "^0.12.0",
"reflect-metadata": "^0.2.1",
"rimraf": "^5.0.5",
"rxjs": "^7.8.1",
"stripe": "^14.18.0",
"zod": "^3.22.4",
"zod-to-json-schema": "^3.22.5"
},
"devDependencies": {
"@faker-js/faker": "^8.0.2",
"@nestjs/cli": "^10.1.8",
"@react-email/components": "^0.0.7",
"@swc/cli": "^0.1.63",
"@swc/core": "^1.3.100",
"@types/cookie-parser": "^1.4.3",
"@types/express": "^4.17.17",
"@types/node": "^20.4.2",
"@faker-js/faker": "^8.4.1",
"@nestjs/cli": "^10.3.2",
"@react-email/components": "^0.0.15",
"@swc/cli": "^0.3.9",
"@swc/core": "^1.4.2",
"@types/cookie-parser": "^1.4.6",
"@types/express": "^4.17.21",
"@types/multer": "^1.4.11",
"@types/node": "^20.11.20",
"@types/nodemailer": "^6.4.14",
"@types/passport": "^1.0.12",
"@types/passport-github2": "^1.2.5",
"@types/passport-google-oauth20": "^2.0.11",
"@types/passport-jwt": "^3.0.9",
"@types/react": "^18.2.21",
"concurrently": "^8.2.0",
"prisma": "^5.0.0",
"@types/passport": "^1.0.16",
"@types/passport-github2": "^1.2.9",
"@types/passport-google-oauth20": "^2.0.14",
"@types/passport-jwt": "^4.0.1",
"@types/react": "^18.2.58",
"concurrently": "^8.2.2",
"prisma": "^5.10.2",
"react": "^18.2.0",
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
}
}
Loading

0 comments on commit b864c68

Please sign in to comment.