Skip to content
/ spa-boilerplate Public template

TableCheck's SPA boilerplate for rapid prototyping of demos, tests and experiments

License

Notifications You must be signed in to change notification settings

tablecheck/spa-boilerplate

Repository files navigation

TableCheck's SPA Boilerplate

DEMO: tc-spa-boilerplate.netlify.app

Getting started

  • Install Node.js and NVM
  • Clone or this project and ensure all the boilerplate code is committed onto main
  • Run nvm use or nvm use <version> (on machines running Windows)
  • Run npm i --legacy-peer-deps (will install the dependencies)
  • Run npm start (will start the app in http://localhost:3000/)
  • Commit all your work onto development and deploy that branch

Deploy to production

The boilerplate is configured to be deployed to Netlify, but it can also work with Github pages, Vercel, AWS Amplify, etc.

Instructions for a Netlify setup:

  • Click on New site from Git
  • Select Github and the repository where you forked it
  • Change Publish directory to build/public
  • Change the Build command to CI= npm run build
  • Deploy site
  • You can change the URL name on Site settings > Change site name

Caveats

  • At some point, if the project becomes a real product, all the files in /public/static/img and /public/static/fonts should be removed and loaded from a CDN
  • The CDN URL should be specified in /config/default.json

Upgrade

To upgrade this boilerplate and use the latest configuration and dependencies, please run this command and select SPA when asked:

npx --legacy-peer-deps -p @tablecheck/scripts tablecheck-scripts init

Support

Create an issue in the Github repository

Contributing

Pull requests for bug fixes and suggestions are welcome. Please do not raise a PR for take-home assignments. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

About Us

SPA Boilerplate is made with ❤️ by TableCheck, the leading restaurant reservation and guest management app maker. If you are a ninja-level 🥷 coder (Javascript / Ruby / Elixir / Python / Go), designer, product manager, data scientist, QA, etc. and are ready to join us in Tokyo, Japan or work remotely, please get in touch at careers@tablecheck.com or careers.tablecheck.com.

License

SPA Boilerplate is licensed under the MIT license.

Copyright

Copyright (c) 2022 TableCheck Inc.

Text Fonts from IBM