Ridesharing

A web app to organize shared rides.

Run on Google Cloud

Build

git clone git@github.com:Mexx77/ridesharing.git
cd ridesharing
docker build -t ridesharing .

Run

PORT=8080
MONGO_HOST=
MONGO_USERNAME=
MONGO_PW=
JWT_SECRET=
docker run \
 -p $PORT:$PORT \
 -e ENVIRONMENT=prod \
 -e PORT=$PORT \
 -e MONGO_PW=$MONGO_PW \
 -e MONGO_USERNAME=$MONGO_USERNAME \
 -e MONGO_HOST=$MONGO_HOST \
 -e JWT_SECRET=$JWT_SECRET \
 --name ridesharing \
 --rm \
 ridesharing

TODO

Mongo

{                                                                         
  "username": 1
}
{ unique: true, partialFilterExpression: { username: { $exists: true } } }