oaworks / oa-works

OA.Works’s official website.

Home Page:https://oa.works

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Netlify Status

OA.Works’ Official Site

OA.Works is a non-profit building tools so that open access is easy and equitable. They’re free, open source, and co-designed with advocates for a just world.

Built with Eleventy.

Running the site locally

Prerequisites:

  1. Clone this repository by typing in your terminal: git clone https://github.com/oaworks/oa-works.git

  2. Change to its newly created directory: cd oa-works/

  3. Install Eleventy for this project: npm install @11ty/eleventy

  4. You can now run the server by entering npm run serve:dev. This will also start a gulp task that will watch for changes in the preprocessed css and convert them to a minified main.css file.

  5. Direct your web browser to http://localhost:8080/.

If running locally isn't your thing, try:

Open in GitHub Codespaces

Setting environment variables

When cloning this repository locally, you will need to create a .env file that will contain:

ELEVENTY_ENV="dev"```

If building in staging or production, the commands are as follows:
`npm run build:staging` for staging, and `npm run build:prod` for production.

In Netlify, there are steps to take to build and deploy depending on the environment: Site Settings > Build & deploy > Environment. Under Environment variables: Edit variables and add `ELEVENTY_ENV` as the key and `prod` as the value.

About

OA.Works’s official website.

https://oa.works

License:MIT License


Languages

Language:Liquid 39.4%Language:SCSS 37.9%Language:JavaScript 11.3%Language:HTML 9.2%Language:CSS 2.2%