Skip to content

emergentworks/website

Repository files navigation

Emergent Works website

Getting Started

To run this project you'll need

Then run:

   npm install

To setup development environment run npm run dev. It will take a minute to build, but you can then view the site at http://localhost:3000.

About the Project

This is the main website for Emergent Works. Target audiences are potential mentees/mentors/employees AND donors/grants/foundations. This is built in React. We are using Next.js to:

  • Build the project
  • Query for images and various config data (such at team information)
  • Routing
  • Local Development

Styles are done with Sass, classnames, and css grid. We have a main style file (styles.scss), and modular scss files for styles specific to each page/component.

Build

Generate the static website by running npm run build.

Linting/Formatting

We are using ESLint and prettier. Make sure you have the ESLint and prettier extensions for VSCode installed (or running with whatever IDE you are using) and enabled for this project. You can also use the npm run format command to format the whole project. Use npm run lint to run a lint on the whole project.

Deploying the App

We use GitHub Actions, which will automatically build the site when you push to a branch, and will automatically build/deploy when a PR is merged with main. Typically we will do this over a manual deploy, however, if you need to do a manual deploy you can using the instructions below.

Prerequistes

To do this you must:

Deploying Locally

We have a bash script to deploy the app, you can run it with 'npm run deploy'

Note, this will update the files in the s3 bucket, but will not invalidate the cache. After running the deploy command run 'npm run update' to invalidate the cache and complete the update.

Also note: while the old version is deleted and the new images are not yet uploaded the website will use down-rezed cached versions (or none at all) of the images. This is a bug potentially work exploring and fixing.

Releases

No releases published

Packages

No packages published

Contributors 16