This project uses the Yarn package manager.
Install the dependencies...
cd open-call
yarn
...then start Rollup:
yarn run dev
Navigate to localhost:5000. You should see your site running.
By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the sirv
commands in package.json to include the option --host 0.0.0.0
.
To create an optimised version of the site:
yarn run build
You can run the newly built site with yarn start
. This uses sirv, which is included in our package.json's dependencies
so that the site will work when you deploying to platforms like Heroku.
By default, sirv will only respond to requests that match files in public
. This is to maximise compatibility with static fileservers, allowing us to deploy the site anywhere.