Shared, login-free inventory scanner for desktop and mobile.
- The frontend is still a single responsive HTML app.
- Shared inventory and activity now live on the server.
- The open scan batch and last location stay local in the browser until you save the batch.
- The backend is an Express API that stores data in PostgreSQL, which makes it a good fit for Railway.
- Create a Railway project for this app.
- Add a PostgreSQL database to the project.
- Expose the database connection string to the app service as
DATABASE_PRIVATE_URLorDATABASE_URL. - Deploy this folder as a Node service.
- Start command:
npm start
The server listens on Railway's PORT value automatically.
- Install dependencies with
npm install - Set
DATABASE_URLto a PostgreSQL database - Run
npm start
- Shared on the server:
- inventory
- activity history
- Local in the browser:
- open batch before submit
- last used location
index.html: responsive frontendserver.js: Express + PostgreSQL APIpackage.json: scripts and dependencies "# wms365Scanner" "# wms365Scanner"