This is a webapp allows users to test their webcams and upload snapshots with text to the server. The snapshots uploaded are shared to all users in realtime.
- Node.js: v16.x
- PostgreSQL: v14
- Clone this project.
- Run
npm install
to install dependencies. - Start PostgreSQL database server.
- Create
.env
file and fill the information. NOTE: replace<PORT>
and<DATABASE_NAME>
with your configuration.
DATABASE_URL="postgres://localhost:<PORT>/<DATABASE_NAME>"
DATABASE_SSL_DEV="true"
- Run
npm start
to start the server.
Deploy to Heroku
- Follow the instruction to install Heroku CLI.
- Run
heroku create <APP_NAME>
to create Heroku app. - Follow the instruction to create a PostgreSQL database for your app.
- Run
git push heroku main
to deploy to the Heroku server.