MiSaengg / 2800-202310BBY19

A community platform that connects writers and readers, enabling the creation of unique stories with the help of the OpenAI API. πŸ€–

Home Page:https://2800-202310-bby-19.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Table of Contents
  1. Contributors
  2. Technology used
  3. How did we use AI
  4. Getting started
  5. File Contents of folder
  6. Learn More
  7. References
  8. Credits
  9. Licence

Logo

Stories of Million

A community platform that connects writers and readers, fosters collaboration, provides feedback, and assists in creating unique stories leveraging the OpenAI API.
Explore the docs Β»

See Project Β· Report Bug Β· Request Feature

Contributors

Jasper David Noel Juan
_Hi, My name is Jasper, Let's do this! _ _Hi, my name is David, time to harness the power of AI :D _ _Hi, my name is Noel, We got this o2o _ _Hi, my name is Juan! _
Team Lead Fullstack Fullstack Fullstack Fullstack

How to use?

1. Create New story 2. Collaborate to story 3. Merge the story

Technology used

image

Vercel Prisma JavaScript Badge Node Badge Next JS TailwindCSS MongoDB VScode Badge

How did we use AI?

  1. AI played a pivotal role in the creation of our app, particularly in the coding phase. We employed OpenAI's Codex model, also known as Co-Pilot, which enhanced our development efficiency and ensured the application of best practices. This model provided real-time code suggestions, assisted in debugging, and served as an invaluable tool for problem-solving, thereby expediting the coding process and bolstering the overall quality of the app.
  2. In addition to aiding in the app's creation, AI was integral in preparing the data needed for our app. We incorporated OpenAI's Ada model into a Python-based data processing pipeline for dataset fine-tuning. The Ada model helped clean and organize the dataset by identifying and correcting inaccuracies, eliminating duplicates, and filling in missing values. This meticulous dataset preparation improved the data quality, tailoring it to our application's needs and contributing to the app's overall performance.
  3. Our app harnesses the power of AI for several functions. One of its key applications is in text completion, where we utilize OpenAI's text-davinci-003 and 002 model. As users embark on their creative writing journey, the AI model suggests potential progressions for their story, aiding them in their creativity. Another critical function of AI in our app is in genre detection. The app analyses user-generated text and assigns it to a predefined genre. This capability not only assists in organizing the content but also paves the way for personalized recommendations.
  4. Despite these advancements, we encountered a few challenges along the way, primarily dealing with the variability and ambiguity of human language. Our genre detection feature, given the subjectivity and context-dependence of language, found it challenging to always correctly categorize the genre. However, we took these limitations as opportunities for improvement. We diversified our training datasets and used user feedback for model fine-tuning. We also allowed users to manually correct the AI-detected genre, and their corrections were fed back into the model for future learning. This iterative process helped the model learn from its mistakes and adapt to user inputs, thereby continually improving over time.

Getting Started

  1. Get a free( OR not free ) API Key at
  1. Clone the repo

    git clone https://github.com/MiSaengg/2800-202310BBY19
  2. Install NPM packages

    npm install
  3. Create and Enter your API in .env

     NEXTAUTH_URL="http://localhost:3000/"
     NEXTAUTH_SECRET=""
    
     DATABASE_URL=""
     GOOGLE_CLIENT_ID=""
     GOOGLE_CLIENT_SECRET=""
     NEXT_PUBLIC_OPENAI_API_KEY=""

run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

File Contents of folder

πŸ“¦ 2800-202310BBY19
β”œβ”€ .gitignore
β”œβ”€ README.md
β”œβ”€ app
β”‚  β”œβ”€ (auth)
β”‚  β”‚  β”œβ”€ layout.jsx
β”‚  β”‚  β”œβ”€ signin
β”‚  β”‚  β”‚  β””─ page.jsx
β”‚  β”‚  β””─ signout
β”‚  β”‚     β””─ page.jsx
β”‚  β”œβ”€ (site)
β”‚  β”‚  β”œβ”€ createMainThread
β”‚  β”‚  β”‚  β””─ page.jsx
β”‚  β”‚  β”œβ”€ layout.jsx
β”‚  β”‚  β”œβ”€ loading.jsx
β”‚  β”‚  β”œβ”€ profile
β”‚  β”‚  β”‚  β”œβ”€ layout.jsx
β”‚  β”‚  β”‚  β””─ page.jsx
β”‚  β”‚  β””─ threads
β”‚  β”‚     β”œβ”€ [threadId]
β”‚  β”‚     β”‚  β”œβ”€ layout.jsx
β”‚  β”‚     β”‚  β”œβ”€ loading.jsx
β”‚  β”‚     β”‚  β”œβ”€ mainThread.jsx
β”‚  β”‚     β”‚  β””─ page.jsx
β”‚  β”‚     β”œβ”€ layout.jsx
β”‚  β”‚     β”œβ”€ loading.jsx
β”‚  β”‚     β””─ page.jsx
β”‚  β”œβ”€ components
β”‚  β”‚  β”œβ”€ EasterEggTrigger
β”‚  β”‚  β”‚  β”œβ”€ EasterEggBBY19Trigger.jsx
β”‚  β”‚  β”‚  β”œβ”€ EasterEggCatTrigger.jsx
β”‚  β”‚  β”‚  β””─ EasterEggPop.jsx
β”‚  β”‚  β”œβ”€ auth
β”‚  β”‚  β”‚  β”œβ”€ GoogleSignInButton.jsx
β”‚  β”‚  β”‚  β””─ SignInButton.jsx
β”‚  β”‚  β”œβ”€ box
β”‚  β”‚  β”‚  β”œβ”€ ConnectorLine.jsx
β”‚  β”‚  β”‚  β”œβ”€ LReadTextBox.jsx
β”‚  β”‚  β”‚  β”œβ”€ RReadTextBox.jsx
β”‚  β”‚  β”‚  β””─ mainTreadBox.jsx
β”‚  β”‚  β”œβ”€ button
β”‚  β”‚  β”‚  β”œβ”€ Button.jsx
β”‚  β”‚  β”‚  β”œβ”€ LikesCompleteButton.jsx
β”‚  β”‚  β”‚  β””─ VotesCompleteButton.jsx
β”‚  β”‚  β”œβ”€ card
β”‚  β”‚  β”‚  β”œβ”€ SimpleProfileCard.jsx
β”‚  β”‚  β”‚  β”œβ”€ StoryCard.jsx
β”‚  β”‚  β”‚  β”œβ”€ profileCardInfo.jsx
β”‚  β”‚  β”‚  β””─ profilepage.jsx
β”‚  β”‚  β”œβ”€ form
β”‚  β”‚  β”‚  β””─ TextField.jsx
β”‚  β”‚  β”œβ”€ modal
β”‚  β”‚  β”‚  β””─ Modal.jsx
β”‚  β”‚  β””─ ui
β”‚  β”‚     β”œβ”€ Contributors.jsx
β”‚  β”‚     β””─ button.jsx
β”‚  β”œβ”€ favicon.ico
β”‚  β”œβ”€ footer.jsx
β”‚  β”œβ”€ globals.css
β”‚  β”œβ”€ head.jsx
β”‚  β”œβ”€ header.jsx
β”‚  β”œβ”€ layout.jsx
β”‚  β”œβ”€ newUser
β”‚  β”‚  β””─ page.jsx
β”‚  β”œβ”€ page.jsx
β”‚  β””─ provider.jsx
β”œβ”€ jsconfig.json
β”œβ”€ lib
β”‚  β””─ prisma
β”‚     β”œβ”€ branchThread.js
β”‚     β”œβ”€ index.js
β”‚     β”œβ”€ mainThreads.js
β”‚     β”œβ”€ threads.js
β”‚     β””─ users.js
β”œβ”€ next.config.js
β”œβ”€ package-lock.json
β”œβ”€ package.json
β”œβ”€ pages
β”‚  β””─ api
β”‚     β”œβ”€ auth
β”‚     β”‚  β””─ [...nextauth].js
β”‚     β”œβ”€ profile
β”‚     β”‚  β””─ index.js
β”‚     β”œβ”€ threads
β”‚     β”‚  β”œβ”€ [threadId]
β”‚     β”‚  β”‚  β”œβ”€ index.js
β”‚     β”‚  β”‚  β”œβ”€ like
β”‚     β”‚  β”‚  β”‚  β””─ index.js
β”‚     β”‚  β”‚  β””─ unlike
β”‚     β”‚  β”‚     β””─ index.js
β”‚     β”‚  β”œβ”€ branchThread
β”‚     β”‚  β”‚  β””─ index.js
β”‚     β”‚  β”œβ”€ index.js
β”‚     β”‚  β”œβ”€ mainThread
β”‚     β”‚  β”‚  β”œβ”€ index.js
β”‚     β”‚  β”‚  β”œβ”€ unvote
β”‚     β”‚  β”‚  β”‚  β””─ index.js
β”‚     β”‚  β”‚  β””─ vote
β”‚     β”‚  β”‚     β””─ index.js
β”‚     β”‚  β””─ mergeThread
β”‚     β”‚     β””─ index.js
β”‚     β”œβ”€ user
β”‚     β”‚  β””─ [userId]
β”‚     β”‚     β””─ index.js
β”‚     β””─ users
β”‚        β”œβ”€ [userEmail]
β”‚        β”‚  β””─ index.js
β”‚        β””─ index.js
β”œβ”€ postcss.config.js
β”œβ”€ prisma
β”‚  β””─ schema.prisma
β”œβ”€ public
β”‚  β”œβ”€ CollaborateWithOthers2.gif
β”‚  β”œβ”€ CreateYourOwnStory2.gif
β”‚  β”œβ”€ MergeStory2.gif
β”‚  β”œβ”€ SAM_Logo_Final.png
β”‚  β”œβ”€ bookCover
β”‚  β”‚  β”œβ”€ comedy.png
β”‚  β”‚  β”œβ”€ crime.png
β”‚  β”‚  β”œβ”€ fantasy.png
β”‚  β”‚  β”œβ”€ history.png
β”‚  β”‚  β”œβ”€ horror.png
β”‚  β”‚  β”œβ”€ psychology.png
β”‚  β”‚  β”œβ”€ romance.png
β”‚  β”‚  β”œβ”€ science-fiction.png
β”‚  β”‚  β”œβ”€ sports.png
β”‚  β”‚  β”œβ”€ thriller.png
β”‚  β”‚  β””─ travel.png
β”‚  β”œβ”€ catjamled.gif
β”‚  β”œβ”€ fireworks.gif
β”‚  β”œβ”€ fullHeart.svg
β”‚  β”œβ”€ heart.svg
β”‚  β”œβ”€ horror.png
β”‚  β”œβ”€ image01.jpg
β”‚  β”œβ”€ next.svg
β”‚  β”œβ”€ nineteenbby.gif
β”‚  β”œβ”€ nyancat.png
β”‚  β”œβ”€ plus.svg
β”‚  β”œβ”€ refresh.svg
β”‚  β”œβ”€ samLogo3.png
β”‚  β”œβ”€ sammember.png
β”‚  β”œβ”€ sifi.png
β”‚  β”œβ”€ typeWriter.jpg
β”‚  β”œβ”€ vercel.svg
β”‚  β”œβ”€ vote.png
β”‚  β””─ voted.png
└─ tailwind.config.js

Learn More

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

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

This is a Next.js project bootstrapped with create-next-app.

References

NextJS Prisma Tailwind css NextAuth OpenAI Vercel MongoDB

Credits

Licence

MIT Licence

Contact Info

Jasper David Noel Juan
βœ‰οΈohyj0906@gmail.com βœ‰οΈgunheedavidcho@gmail.com βœ‰οΈdndyd4924@gmail.com βœ‰οΈjuanchung7v@gmail.com

About

A community platform that connects writers and readers, enabling the creation of unique stories with the help of the OpenAI API. πŸ€–

https://2800-202310-bby-19.vercel.app/

License:MIT License


Languages

Language:JavaScript 99.7%Language:CSS 0.3%