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
npm install
npm run dev
Navigate to http://localhost:8084/
To build the project for production:
NODE_ENV=production npm run build
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.