rfcx / rfcx-org-archived-2020

Node Express app that renders the main Rainforest Connection website

Home Page:https://rfcx.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rfcx.org

Development server

Node version

Required Nodejs version is specified in .nvmrc file. If you use nvm, you can run the following commands in the project's root: If required node version is not yet installed on your machine:

nvm install

If required node version is installed on your machine:

nvm use

Install the dependencies:

npm install

Run local server:

npm run dev

Navigate to http://localhost:8084/

Build

To build the project for production:

NODE_ENV=production npm run build

Code scaffolding

For creating a new page you should add a new one to src/html/*new-page*.html with the following structure:

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Rainforest Connection | *new-page* m</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <!-- @include modules/common/head.html -->
    <link rel="stylesheet" href="css/*new-page*.min.css">
</head>
<body class="*new-page*">
<!-- @include modules/common/body-start.html -->
<!-- @include modules/common/header.html -->
<!-- @include modules/common/footer.html -->
<!-- @include modules/common/modal.html -->
<!-- @include modules/common/body-end.html -->
</body>
</html>

For creating modules you should add a new module to src/html/modules/*new-page*/*new-module*.html and add this one to body of src/html/*new-page*.html between:

<!-- @include modules/common/header.html -->
<!-- @include modules/*new-page*/*new-module*.html -->
<!-- @include modules/common/footer.html -->

For creating styles page you should add a new one to src/less/*new-page*.less. For creating modules you should add a new module to src/less/modules/*new-page*/*new-module*.less and add this one to src/less/*new-page*.less to the top of the page.

Browserstack

About

Node Express app that renders the main Rainforest Connection website

https://rfcx.org/

License:Apache License 2.0


Languages

Language:HTML 49.3%Language:Less 44.8%Language:JavaScript 5.7%Language:Dockerfile 0.2%