The API for bracket.club.
Starting the API
npm install npm start
# Make sure the POSTGRES_URL secret exists in the .env file touch .env echo "POSTGRES_URL=<TOTES_SECRET_CONN_STRING>" >> .env # Deploy to bc-api npm run deploy # If you're happy with the deploy # API will now be accessible from https://bc-api.now.sh now run deploy:alias # If you want to cleanup old deployments npm run deploy:purge npm run deploy:list # to confirm
By default this will use variables from
getconfig and write data to the
bracket.club client repo (which should be located as a sibling of this repo).
npm run export
If you wanted to export stuff from production:
NODE_ENV=production npm run export