Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Node Express app that renders the main Rainforest Connection website

License

Notifications You must be signed in to change notification settings

rfcx/rfcx-org-archived-2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published