Skip to content

russeree/portland-bitdevs-upgrade

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portland BitDevs-Upgrade

Netlify Status

Generate AI Summaries

This is a project to improve the UX of BitDevs websites and add AI generated summaries to help new attendees.

BitDevs Upgrade

AI Scraper and Summarizer

How to setup repository secrets

  • Add repository secret OPENAI_API_KEY -> your Open AI API Key
  • Add repository secret GH_TOKEN -> A github access token with enough access to commit files and submit a PR
  • These secrets will enable the github action to summarize the event markdown files using OpenAI.
  • The ai directory is independent from the website and runs and builds separately. If you want to run it locally:
cd ai

# Make a .env file inside the ai directory and add your OPENAI_API_KEY

yarn install

yarn start
  • It will pick markdown files inside content/events directory starting with a date in yyyy-mm-dd.
  • Only the most recent file sorted by date will be summarized.
  • Once the Github action finishes the building the summary, it will submit a PR to the repo. If the PR is merged, the repo builds and deploys to production and summaries are visible on the website.

Figma Design

Follow design work here: https://www.figma.com/file/4bV8cJBpreCpWwJ55uk9Rb/BitDevs-Upgrade?type=design&node-id=7%3A10&mode=design&t=Wz7ivmd0ZRi69Vqx-1

Frontend Template

The frontend is a NextJS website. See below for NextJS details.

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

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open https://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 to automatically optimize and load Inter, a custom Google Font.

Upgrading

If you fork this template for your own website, you may want to upgrade the template in the future if there are bug fixes, UX improvements, or new features. You can run ./upgrade.sh from a CLI shell to upgrade, which will pull down the latest, but ignore content that ia unique to your site.

However, this isn't guaranteed to work properly. Before running upgrade.sh, make sure all your changes have been committed. Create a clean branch and run the update their. Check the changes that have been applied when you merge to ensure none of your unique content is overwritten.

About

Portland Bitdevs Upgraded

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 85.5%
  • JavaScript 11.6%
  • CSS 1.7%
  • Other 1.2%