https://github.com/nerddiffer/reprise
Real-time jam
https://github.com/nerddiffer/reprise
expressjs postgresql react web-sockets webrtc
Last synced: 3 months ago
JSON representation
Real-time jam
- Host: GitHub
- URL: https://github.com/nerddiffer/reprise
- Owner: NerdDiffer
- License: mit
- Created: 2016-10-06T20:02:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-30T17:41:11.000Z (over 9 years ago)
- Last Synced: 2025-04-06T14:22:57.366Z (12 months ago)
- Topics: expressjs, postgresql, react, web-sockets, webrtc
- Language: JavaScript
- Homepage: https://reprise-io.herokuapp.com
- Size: 9.02 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# reprise
Jam with your friends in real-time. A continuation of [jamWithFriends](https://github.com/ColossalBubble/jamWithFriends).
## Technologies
##### Front end
React, React Router, Tone.js, simple-peer, socket.io-client
##### Back end
Express, Postgres, Passport, socket.io, Sequelize
##### Build
webpack, shell scripts
## Development
### Install application dependencies
```sh
npm install
```
### Setup the database
Be sure to have `postgres` installed on your workstation and to have the
system service running in the background.
Consult your OS's documentation for how to do this.
Use [homebrew](http://www.brew.sh/) if you're on a Mac.
```sh
# Set up the DB & your DB user
npm run db:reset
# Run all pending DB migrations
npm run sequelize db:migrate
# Seed the DB with dummy data
npm run sequelize db:seed:all
# If you want, enter `psql`
npm run db:connect
```
### Environment Variables
Generate a new template for your `.env` file. Note, this will not do anything
if the file already exists.
```sh
npm run setup:env_vars
```
From there, register an application at [Facebook Developers](https://developers.facebook.com/) and fill in the requisite information.
### Running it
Pick one of these two ways:
```sh
# 1. With separate terminal tab for front-end & back-end:
npm run back-end
npm run front-end
# 2. One terminal tab for both front-end & back-end
npm start
```
## Deployment
#### Prepare a source bundle
* `npm run deploy:archive`
* then upload it to AWS
#### Prepare environment
* ssh into AWS
* as a sudo user, `cd` into the path of deployed files. Then run:
* `npm run deploy:install`
* `npm run start:prod`