Skip to content
Merged

Aws #11

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e903204
create notes router
crespofer May 30, 2025
17498bb
generate generic presigned url from aws
crespofer May 30, 2025
301bfdb
upload to aws using signed url
crespofer May 30, 2025
5b76bf0
fix allowed file types
crespofer May 30, 2025
fd84c4f
add file size/type validation
crespofer May 30, 2025
15736a1
add checksum to file validation
crespofer May 30, 2025
77ee045
hash file names for unique names
crespofer May 30, 2025
c2b0909
add file type back to db
crespofer May 31, 2025
d2a0793
create table entry when note is uploaded
crespofer May 31, 2025
00cf7b5
add preview for pdfs
crespofer May 31, 2025
41b12ef
create procedure to fetch notes by course
crespofer May 31, 2025
eb5af94
fetch and display notes per course
crespofer May 31, 2025
f209883
remove some fields when fetching per course
crespofer May 31, 2025
8881719
create procedure to fetch notes from id
crespofer May 31, 2025
60455f3
allow aws images
crespofer May 31, 2025
6d72d6e
display specific note
crespofer May 31, 2025
9ee74ef
add loading for courses
crespofer May 31, 2025
f42a9c9
create procedure to fetch notes for users
crespofer May 31, 2025
c79d121
redirect to new note after upload
crespofer May 31, 2025
c0af8ff
create procedure to delete note
crespofer May 31, 2025
298f9c6
add upload to header
crespofer May 31, 2025
1f391d6
add delete note to dashboard
crespofer May 31, 2025
4dbbc77
use router for redirects in client instead
crespofer May 31, 2025
a7067f4
add skeletons to loading pages
crespofer May 31, 2025
7c43eda
update readme
crespofer May 31, 2025
323044f
include more data for fetching by course
crespofer May 31, 2025
3a8e969
include img preview if of image type
crespofer May 31, 2025
63c59ae
add keys to loading pages
crespofer May 31, 2025
dcfc882
change mapping loop
crespofer May 31, 2025
3328859
type errors
crespofer May 31, 2025
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
39 changes: 19 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
# Create T3 App
# [Public Notes](https://public-notes-six.vercel.app)

This is a [T3 Stack](https://create.t3.gg/) project bootstrapped with `create-t3-app`.
A collaborative platform for uploading and sharing course notes with others.

## What's next? How do I make an app with this?
## Overview

We try to keep this project as simple as possible, so you can start with just the scaffolding we set up for you, and add additional things later when they become necessary.
**Public Notes** allows students to upload, organize, and share notes by course. Users can browse courses, preview and download notes, and contribute their own materials to help classmates and the wider academic community.

If you are not familiar with the different technologies used in this project, please refer to the respective docs. If you still are in the wind, please join our [Discord](https://t3.gg/discord) and ask for help.
## Features

- [Next.js](https://nextjs.org)
- [NextAuth.js](https://next-auth.js.org)
- [Prisma](https://prisma.io)
- [Drizzle](https://orm.drizzle.team)
- [Tailwind CSS](https://tailwindcss.com)
- [tRPC](https://trpc.io)
- **Upload Notes by Course:** Easily upload notes and associate them with specific courses.
- **Browse & Search:** Find notes by course and preview them before downloading.
- **Organized Storage:** Notes are organized by course for easy access.
- **Authentication:** Secure login and user management.
- **Cloud Storage:** All files are stored securely on AWS S3.

## Learn More
## Tech Stack

To learn more about the [T3 Stack](https://create.t3.gg/), take a look at the following resources:
- **Frontend:** Next.js
- **Backend:** tRPC
- **Database:** PostgreSQL
- **ORM:** Prisma
- **Authentication:** NextAuth.js
- **File Storage:** AWS S3

- [Documentation](https://create.t3.gg/)
- [Learn the T3 Stack](https://create.t3.gg/en/faq#what-learning-resources-are-currently-available) — Check out these awesome tutorials
---

You can check out the [create-t3-app GitHub repository](https://github.com/t3-oss/create-t3-app) — your feedback and contributions are welcome!

## How do I deploy this?

Follow our deployment guides for [Vercel](https://create.t3.gg/en/deployment/vercel), [Netlify](https://create.t3.gg/en/deployment/netlify) and [Docker](https://create.t3.gg/en/deployment/docker) for more information.
**Public Notes** is built to help students help each other. Share your notes, learn together, and make education more accessible!
11 changes: 10 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
import "./src/env.js";

/** @type {import("next").NextConfig} */
const config = {};
const config = {
images: {
remotePatterns: [
{
protocol: "https",
hostname: "public-notes.s3.us-east-2.amazonaws.com"
}
]
}
};

export default config;
Loading