Install dependencies
yarn
Run the development server
yarn next
When the above command completes you'll be able to view your website at http://localhost:3000
.
To use serverless functions at /api
, run a now server:
now dev
To use a local database for mocking events, install MongoDB:
brew tap mongodb/brew
# use the latest version
brew install [email protected]
brew services start [email protected]
There's some environment variables that need to be set, (@arnemolland is working on default dev environments, use local/own environments until then):
mailchimp_list_id=(MAILCHIMP AUDIENCE LIST ID)
mailchimp_api_key=(MAILCHIMP API KEY)
mongo_uri_dev=mongodb://localhost/test
On your local MongoDB instance, you can import mock data from mock.json
:
mongoimport --db test --collection events --file mock.json
This project uses the following libraries and services: