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.
Prerequisites:
- Running from the command line.
- Installing Node.js and Node Package Manager or
npm
.
-
Clone this repository by typing in your terminal:
git clone https://github.com/oaworks/oa-works.git
-
Change to its newly created directory:
cd oa-works/
-
Install Eleventy for this project:
npm install @11ty/eleventy
-
You can now run the server by entering
npm run serve:dev
. This will also start agulp
task that will watch for changes in the preprocessed css and convert them to a minifiedmain.css
file. -
Direct your web browser to
http://localhost:8080/
.
If running locally isn't your thing, try:
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.