Web application for taking notes with archiving options.
✔ Create, edit, and delete notes.
✔ Archive and unarchive notes.
✔ List active and archived notes.
✔ Data persistence using a relational database (PostgreSQL) with Prisma ORM.
✔ Frontend and backend separated as a SPA.
✔ Layered backend structure (Controllers, Services, and Repositories).
- React (Vite)
- TailwindCSS
- React Router DOM
- Zustand
- Zod
- Axios
- SweetAlert2
- Framer Motion
- @tanstack/react-query
- Lucide React
- @fontsource-variable/roboto
- NestJS
- Prisma ORM
- Neon PostgreSQL
- Class Validator & Class Transformer
- Node.js
22.11+
- NPM
11+
- Neon PostgreSQL
(cloud database, configured via DATABASE_URL)
-
Clone the repository:
git clone https://github.com/justcoddev/notepad.git cd notepad
-
Give execution permissions to the script (only once):
chmod +x start.sh
-
Run the script:
./start.sh
✅ If everything is correct, the backend and frontend will start automatically. 🚀
-
Clone the repository:
git clone https://github.com/justcoddev/notepad.git cd notepad
-
Open CMD or PowerShell in the project folder
- In CMD: Type
powershell
and press Enter to switch to PowerShell. - In PowerShell: Make sure you are in the
notepad
folder.
- In CMD: Type
-
Allow script execution (only once):
Set-ExecutionPolicy Unrestricted -Scope Process
🔹 This will prompt for confirmation. Type
A
(Yes to All) and press Enter. -
Run the script:
.\start.ps1
✅ If everything is correct, the backend and frontend will start automatically. 🚀
- Run:
npx prisma migrate deploy
- Go to Render.
- Click New + → Web Service.
- Select the
notepad
repository. - Configure:
- Root Directory:
backend
- Build command:
npm install && npx prisma migrate deploy && npm run build
- Start command:
npm run start
- Environment Variables:
DATABASE_URL = *****
- Root Directory:
- Copy the backend URL.
- Create a
.env
file and add the backend URL:VITE_API_URL=*****
- Go to Render.
- Click New + → Static Site.
- Select the
notepad
repository. - Configure:
- Root Directory:
frontend
- Build command:
npm install && npm run build
- Publish Directory:
dist
- Environment Variables:
VITE_API_URL = *****
- Root Directory: