RequestBin like application. Users can create ephemeral bins that collect requests for 48 hours. This repository is developed for deploying to a VPS server.
RequestBin like application. Users can create ephemeral bins that collect requests for 48 hours. This repository is developed for deploying to a VPS server.
- Ensure that MongoDB and PostgreSQL are installed on your machine.
- Clone this repository.
- Create
.envfolder for DB connection insideserverfolder. - Run
npm installfromclientandserverfolders. - Run
npm run devfromserverfolder.
- Clone this repository.
- Run
npm installfromclientandserverfolders. - Create
.envfiles insideserveranddb_cleaner. - Build(
npm run build)clientreact app and movebuildfolder toserverfolder. - Run the application as a background process using
pm2 - Run the go worker for database clean up as a
systemdservice. - (Optional) Configure firewall to allow connections from a single port only
- (Optional) Create an Nginx file inside
/etc/nginx/sites-available/with your domain
- Add front-end test
- Configure eslint
- Experiment with WebSockets
(Bins is a Postgres Table and Requests is a Mongo collection. Relationships in this diagram describe logical relationships only)
The application is deployed to a DigitalOcean Droplet. It requires additional configuration steps which are described in "Deployment". The diagram shows a deployed application running from a VPS.


