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.
- Clone this repository.
- Create
.env
folder for DB connection insideserver
folder. - Run
npm install
fromclient
andserver
folders. - Run
npm run dev
fromserver
folder.
- Clone this repository.
- Run
npm install
fromclient
andserver
folders. - Create
.env
files insideserver
anddb_cleaner
. - Build(
npm run build
)client
react app and movebuild
folder toserver
folder. - Run the application as a background process using
pm2
- Run the go worker for database clean up as a
systemd
service. - (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.