A simple web application that allows users to view songs and add new songs to the board.
- Install Bun
Linux and macOS:
curl -fsSL https://bun.sh/install | bash
Windows:
powershell -c "irm bun.sh/install.ps1 | iex"
- Clone and Setup
git clone https://github.com/cooper-gadd/song-board.git
- Go to the project directory
cd song-board
- Install dependencies
bun install
- Add a
.env
file
touch .env
- Add the following to the
.env
file
DATABASE_URL="file:./db.sqlite"
- Database Setup
bun run db:push
- Start Development Server
bun run dev
- Bun and Next.js enable easy high fidelity prototyping
- Bun includes native sqlite driver and supports many npm libraries/frameworks
- Next.js builds on React with performance and efficiency features
- All-in-one high performance JavaScript toolkit
- Includes package manager, bundler, and test kit
- Provides web APIs for quick application scaffolding
- Uses JavaScriptCore Engine from Safari for fast speeds
- Compatible with all npm packages
- Adheres to package.json standard
- Enables easy migration from npm projects
- Simple APIs that reduce boilerplate code
- Handles file reading, writing, and HTTP requests efficiently
- Improves developer experience
- Built-in hot reloading
- Includes bundling tool
- Native sqlite driver support
- Framework building on React
- Improves performance through server-side rendering
- Simplifies routing
- Includes serverless API support
- Serves fully formed HTML pages
- Provides performance benefits
- Creates better user experience
- Enables fast perceived loading times
- Streamlines routing using a file-based system
- Enables API routes for serverless functionality
- No need for additional backend server
- Includes performance optimizations over React
- Building with Turbopack for faster builds
- Schema
- Seed data
- Display songs
- Create songs