A simple vibe-coded Node.js Express note-taking application with user authentication and public/private note sharing.
export DB_PASSWORD=your_password
docker compose up- Node.js (v14 or higher)
- MySQL Server
- npm
- Install dependencies:
npm install- Set up MySQL database:
2.1 using existing MySQL server
CREATE DATABASE noteapp;2.2 using docker
docker run --name=notes-mysql -p3306:3306 -e 'MYSQL_ROOT_HOST=%' \
-e MYSQL_DATABASE=noteapp -e MYSQL_ROOT_PASSWORD=your_mysql_password -d mysql/mysql-server && sleep 20 # let the DB initializeNote: root password (your_mysql_password) should be changed
- Create environment variables file (
.env):
DB_HOST=localhost
DB_PASSWORD=your_mysql_password
- Start the application:
npm startThe application will be available at http://localhost:3000