This is a web app to help people find opportunities to get involved in progressive events and organizations near them. It's built in Node+React+Redux+Express+Mongo. Contact Ian if you want to get involved.
First, you will need to make a .env
file that looks like:
GOOGLE_MAPS_API_KEY=asdfasdfasdf
MONGODB_URI=mongodb://localhost/activist
SESSION_SECRET=asdfasdfasdf
SENDGRID_API_KEY=asdfasdfasdf
But replace "asdfasdfasdf" with your key/secret.
With Node 6 installed and MongoDB running locally:
cd
into the project directory.- Do
npm install
to install all dependencies - Do
npm start
or usenodemon
. If you're changing the frontend stuff be sure to runwebpack -w
in another terminal window.
- Install Docker
cd
into the project directory- Set up the container with
docker build -t activist-app .
- Then do this (replace 'asdfasdf' with the real keys):
# run the mongo container
docker run --name mongo-server -d mongo
# run the app on localhost:3000
# and connect that to the mongo container
# TODO: this doesn't actually work!
docker run -it \
--name activist-app-instance \
--link mongo-server:mongo \
-e GOOGLE_MAPS_API_KEY='asdfadf' \
-e MONGODB_URI='mongodb://localhost/activist' \
-e SESSION_SECRET='asdfasdf' \
-e SENDGRID_API_KEY='asdfasdf' \
-p 3000:3000 \
activist-app