Table of Contents
To get a local copy up and running follow these simple example steps.
This project was created with yarn@3.2.2
, please ensure you're using the correct yarn version
- install yarn if you don't have it
npm install -g yarn
- go into this project and run
yarn set version berry
-
Clone the repo
git clone https://github.com/emmebravo/switchboard.git
-
Install NPM packages
yarn install
-
To run the server
yarn dev
-
To run the client, make sure you're in the right folder
cd client yarn dev
- The frontend and backend are not running concurrently
- I've done two things which are vulnerabilities, but I felt necessary to make running this repo as smooth as possible.
- I've included the
mongodb
connection string in theconfig/database.js
file as I've seeded the CSV data already. - The
USERNAME
&PASSWORD
forexpress-basic-auth
used in the/actblue_webhook
endpoint are not hidden, either- they're the same as the APPENDIX A username & password
- I've included the
- Server can be the only one running to send a
POST
request to the/actblue_webhook
endpoint - React will not display the data unless the server is running
- they aren't running concurrently, sorry!