Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 2.34 KB

README.md

File metadata and controls

61 lines (45 loc) · 2.34 KB

Futures Fine Furniture & Bedding Frontend Website

This mono-repo contains

Technologies Used

  • sanity define Structured Content schema and it provides a admin page and database
  • gatsbyjs A Static Website Generator that uses React / JAMStack
  • React a javascript libary for building UI created by facebook and very popular
  • snipcart A shopping cart provider for static sites (note I may move this across to shopify in the future to support afterpay)
  • ramdajs A practical functional library for JavaScript programmers
  • tailwindcss - still migrating too this, but is a utility-first CSS framework
  • lerna - tool for managing monorepos with multiple packages

Quick Start

environment variables

  • SANITY_READ_TOKEN required
  • snipcart_api should build without but ecom shopping cart wont work
  • GATSBY_SANITY_PROJECT_ID Defaults to "rwvwe1aj"
  • GATSBY_SANITY_DATASET Defaults to "production"

Set up Dev Environment

You'll need node and npm installed, would be usefull to install gatsby-cli

once you've got environment setup then run

  npm install
  npm run dev

this will setup a local version of webpage at localhost:8000/ and adminpage at localhost:3333

Production Build - webpage

assuming you've got dev environment setup and working run

npm run build-web

it will create production files in webpage/public

Production Build - adminpage

assuming you've got dev environment setup and working run

npm run build-admin

it will create production files in adminpage/dist

Contributions

Would love to see Contributions already I owe a huge thank you to lukebennett88 twitter @luke_bennett_ who did the bulk of the migration to tailwindcss for styling and also did a lot of styling the site