A complete user management application in a single JavaScript file with no external dependencies.
- Zero dependencies - Uses only native Node.js modules
- Single file - All code in
app.js
- JSON database - Simple persistence in
users.json
- Web interface - HTML, CSS and JavaScript included
- REST API - Endpoints to manage users
git clone https://github.com/luangrezende/one-file-app.git
cd one-file-app
node app.js
Open http://localhost:3000
in your browser.
one-file-app/
├── app.js # Complete application
├── users.json # Database (created automatically)
└── README.md # This file
- Add users
- List users
- Delete users
- Data validation
- Responsive interface
- Data persistence
GET /
- Web interfaceGET /api/users
- List all usersPOST /api/users
- Add a new userDELETE /api/users/:id
- Delete a user
- Node.js (http, fs, path, url)
- HTML5 + CSS3 + JavaScript
- JSON for persistence
- Push your code to GitHub
- Go to railway.app
- Connect your GitHub repo
- Deploy automatically!