Skip to content

bslatkin/8-bits

Repository files navigation

Logo

Overview

Have a private chat with close friends. Only people with the secret link can join. Share silly websites, images, and stories. Be serious when you need to. Each post is auto-deleted after ten days, fading like memories.

This is the open source project, called 8-bits of ephemera. The live site is ephemeral.im

Contributing

Patches welcome! Please first sign the Contributor License Agreement (generated by Project Harmony).

Disclaimer

The source code and opinions expressed on this site belong to the participants in the project, respectively, not to their employers or clients.

Directions

You'll need Python 2.7 and the App Engine SDK.

Run this command to build PyCrypto. It's built locally so it won't pollute your global site-packages. Using Brew is fine too.

cd pycrypto
python setup.py build

You need some secret keys for the session cookie library and XSRF protection. Run this script once to generate them.

./make_secrets.sh

To run the app locally

./run_server.sh
# Navigate to http://localhost:8080

To see frontend tests

./run_server.sh
# Navigate to http://localhost:8080/tests/index.html

To compile the JS into a binary

./gendepsfile.sh
./compile.sh
# Notice that deps.js and compiled.js have changed

To deploy

Make sure you change backend/app.yaml to use your app ID and version number. Then run:

appcfg.py update backend

You can test a new version on a URL like http://your-version-id.your-app-id.appspot.com/