Skip to content

Website for official 2018 7 School Eastern China Hackathon

License

Notifications You must be signed in to change notification settings

njumsc/HackathonWebsite

Repository files navigation

Eastern China Hackathon by MSC

Check it now!

Development

Yarn instead of NPM is required.

# install dependencies
yarn install

# serve with hot reload at localhost:8000
yarn start

# run production build
yarn run build

Notice that a dependency sharp needs to pull prebuilt binaries from GitHub releases during installation. However, GitHub hosts release files on AWS, which is blocked in China. Failure to download these files will cause failure in installation and following steps.

To successfully download these files, follow these steps:

  1. Download the file yourself
  2. Upload the file into a cloud service (I use qiniu storage) and get the URL, which needs to be accessible from Internet
  3. Set the environment variable SHARP_DIST_BASE_URL to the URL without the filename itself
  4. Disable your proxy! (important if you are using shadowsocks)
  5. yarn install and you are ready to go!

You may use http://olaviw8n8.bkt.clouddn.com/ as the BASE_URL to test but be sure to change it as long as you upload it yourself.

See the official docs about changing the base url for the binary.

Deployment

Before deploying, npm run build first!

npm run deploy will

  1. rename to ./docs
  2. write in CNAME

Then push to master. GitHub will publish the website.

Credits

Built with Gatsby - the blazing-fast static site generator for React.

About

Website for official 2018 7 School Eastern China Hackathon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published