In this repo you can find links to all documentation required. For those working on the project who need real log ins and production env vars, please refer to the Admin issue #1 and reach out to [email protected] for access.
- Production version: https://www.uc-helper.co.uk
- Staging version: https://hyde-dev.herokuapp.com
For the full tech stack approach please refer to https://www.notion.so/Tech-Stack-External-Services-Deployment-Recommendation-8169f65c04664f75839f678143559cd1
As a summary:
How to get a copy of the project up and running on your local machine.
Please ensure you have this software installed and running on your local machine before you attempt to run this webapp.
Node (via nvm recommended) see: https://github.com/creationix/nvm
Setup
- Clone the repo
- Install Dependencies
$ cd universal-credit-support
$ cd client && npm i && cd ..
$ cd server && npm i && cd ..
$ npm i
- You will need to create a .env file in the server directory a. You will need to create an AWS account for yourself to upload images b. You will need to create a Sendgrid account for yourself if you want to send emails
NODE_ENV=development
APP_URL=http://localhost:3000
PORT=8080
SECRET=[ENTER YOUR SECRET HERE]
# POSTGRES
DATABASE_URL=[ENTER DB URL]
DATABASE_URL_TEST=[ENTER TEST DB URL]
# AWS
BUCKET = [YOUR AWS BUCKET]
BUCKET_REGION = [YOUR AWS BUCKET REGION]
AWS_ACCESS_KEY_ID = [YOUR AWS ACCESS KEY ID]
AWS_SECRET_ACCESS_KEY = [YOUR AWS ACCESS KEY]
AWS_REGION=eu-west-2
# SENDGRID
SENDER_EMAIL= [EMAIL ADDRESS TO SEND EMAILS AS]
SENDGRID_API_KEY= [YOUR SENDGRID API KEY]
- Build the database
$ npm run build:db
- Run it
$ npm run dev
- Have Fun The webapp should now be running on localhost:3000 Now you can play with the code all you like 🎉
If you notice anything wrong with the instructions or the project isn't running as expected don't hesitate to raise an issue and we'll try to figure it out.
To run tests for the client:
$ npm run test:client
To update snapshots when tests run:
$ npm run test:client -- --updateSnapshot
To run tests for the server:
$ npm run test:server
If you are interested in contributing to the codebase please reach out to [email protected]