Skip to content

Commit

Permalink
Merge pull request #4 from BU-Spark/base-next-app
Browse files Browse the repository at this point in the history
[se-bu-csc-hours-tracking]: Entire App from Production to Main
  • Loading branch information
danoh07 authored Jul 3, 2024
2 parents 942cf7b + 085ea78 commit 0ec130f
Show file tree
Hide file tree
Showing 40 changed files with 7,767 additions and 176 deletions.
170 changes: 0 additions & 170 deletions .gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions COLLABORATORS

This file was deleted.

22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
# TEMPLATE-base-repo
# BU CSC Hours Tracker
An application that connects BU students with nonprofit organizations looking for volunteers and records the data related to hours volunteered by individual, organization, college, and university.

# See it deployed
[https://bu-csc-dev.netlify.app/](https://bu-csc-dev.netlify.app/)

# To Run Locally
`cd hour-tracker` <br/>
`npm install` <br/>
`docker compose up` (if this is your first time) <br/>
`npm run dev` <br>

# Contributors
Ale Lanz (alessandralanz)<br/>
Owen Mariani (owenm-26)




# Add Users
To add yourself to the repository, open a Pull Request modifying `COLLABORATORS`, entering your GitHub username in a newline.

All Pull Requests must follow the Pull Request Template, with a title formatted like such `[Project Name]: <Descriptive Title>`
3 changes: 3 additions & 0 deletions hour-tracker/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
38 changes: 38 additions & 0 deletions hour-tracker/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

*.env
# dependencies
**/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next
*/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
36 changes: 36 additions & 0 deletions hour-tracker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.

## Learn More

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.

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

## Deploy on Vercel

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.
8 changes: 8 additions & 0 deletions hour-tracker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
postgres:
image: postgres:15-alpine
ports:
- 5433:5433 # enables connecting locally via psql
environment:
POSTGRES_DB: hour-tracker
POSTGRES_HOST_AUTH_METHOD: trust
9 changes: 9 additions & 0 deletions hour-tracker/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[build]
command = "npm run build"
publish = ".next"

[[plugins]]
package = "@netlify/plugin-nextjs"

[functions]
directory="netlify/functions"
15 changes: 15 additions & 0 deletions hour-tracker/next-auth.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { DefaultSession, JWT } from 'next-auth';

declare module 'next-auth' {
interface Session {
user: {
id: string;
} & DefaultSession['user'];
}
}

declare module 'next-auth/jwt' {
interface JWT {
id: string;
}
}
8 changes: 8 additions & 0 deletions hour-tracker/next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
rewrites: async () => [
{
source: '/signin',
destination: '/api/auth/signin',
},
],
};
Loading

0 comments on commit 0ec130f

Please sign in to comment.