The project defines a unified landing page for demo projects developed by dlab @ EPFL that are hosted on the external server.
General information (e.g., the lab website) is defined in src/constants.ts.
const header = {
homepage: 'https://dlab.epfl.ch/',
title: 'dlab @ EPFL',
};
const contact = {
homepage: 'https://dlab.epfl.ch/',
};
const footer = {
projectLink: 'https://github.com/epfl-dlab/demo-landing-page',
};
const about = {
// The title of the home page
topic: 'Crosslingual Research with Wikipedia',
affiliation: 'dlab @ EPFL, Switzerland',
// An introductory paragraph to the home page
description: `This page gives an overview of crosslingual research projects with Wikipedia conducted by dlab @ EPFL.
`,
// Some external links to the group page
social: {
homepage: 'https://dlab.epfl.ch/',
github: 'https://github.com/epfl-dlab/',
mail: 'robert.west@epfl.ch',
},
};To change the general information, simply edit the value field in src/constants.ts.
To modify / add / delete projects, simply edit src/projects.ts. Note that, three fields, name, authors, description are required to define a project, whereas sourceCode, paperLink, demoPage are optional.
interface Project {
name: string;
authors: string;
description: string;
sourceCode?: string;
paperLink?: string;
demoPage?: string;
}This project was bootstrapped with Create React App.
Hence, it is highly recommended to run / build the project with yarn. Since yarn includes breaking changes between v1 and v2, please note that we use v1 in our project.
# make sure that you have node installed
npm install --global yarn
yarn installyarn startTo run a production build:
yarn buildEverything is ready by now. Simply copy the contents inside build/ folder and the new version is good to go.
If you prefer to use an isolated environment instead of installing yarn locally, we recommend using the official node image.
docker pull node:lts
# Mount current directory into folder and set port forwarding between host machine and container
docker run -v `pwd`:`pwd` -w `pwd` -p 3000:3000 -it node:lts /bin/bash
# Install the required node modules (required only once)
yarn install
# Start the server locally. You can access the web page from the host machine at: localhost:3000
yarn start
# Build the production files
yarn build
Our public demo is currently deployed here.
This project is based on the cleanfolio. The original project is developed with JavaScript while this project adopts TypeScript for better type checks and hints. Other adaptations have been made to localize the project for demonstrating the projects hosted on the server.