The content in the website/ folder is used to generate the public-facing website for AppScope end-users at https://appscope.dev/ and the staging version at https://staging.appscope.dev/. Our automated build systems deploy to these sites for commits to the master and staging branches, respectively. We use Gatsby to compile to content here into static content that we then deploy to an AWS S3 bucket that is served up via the URLs mentioned earlier.
The deploy.sh script is run by the website workflow to handle the deployment on commits.
See the Gatsby docs for complete details but to spin up a local environment for content editors, it should be a matter of:
- Install
nodewithbrew install nodeon MacOS orapt install nodejson Ubuntu. Keep it updated runningbrew upgrade nodeorapt update/apt upgradeoccasionally. - Install local dependencies in the project with
npm install. - Run the local development server with
npm run develop. - Access the local development version of the website at
http://127.0.0.1:8000/.
Using Node 16 or higher breaks some of this. It works with 14.