To run locally:
- Create
.env
in project's main directory with the following format:
MAILGUN_API_KEY=xxx
MAILCHIMP_API_KEY=xxx
MAILCHIMP_LIST_ID=xxx
DATABASE_URL=mongodb://localhost:27017/wisdom-server-db
where xxx
has API keys for Mailgun and Mailchimp
-
Install mongo. Run
mongo
. Thenuse wisdom-server-db
to create db. -
In main directory run
npm install
-
Run
npm run watch
in main directory to run the Express server. -
In separate terminal tab, open
/client
folder and runnpm install
. Then runnpm start
to start the dev server for the React app. -
Open up
localhost:3000
in your browser to view site
Site is hosted on Heroku in production