项目作者: inclusive-design

项目描述 :
Website for the Inclusive Design Research Centre.
高级语言: SCSS
项目地址: git://github.com/inclusive-design/idrc.git
创建时间: 2020-03-17T21:53:04Z
项目社区:https://github.com/inclusive-design/idrc

开源协议:BSD 3-Clause "New" or "Revised" License

下载


Inclusive Design Research Centre

Netlify Status

Website for the Inclusive Design Research Centre.

Getting Started

To work on the project, you need to:

  • Install NodeJS and NPM for your operating system
  • Clone the project from GitHub. Create a fork
    with your GitHub account, then run the following in your command line (make sure to replace your-username with
    your username):
  1. git clone https://github.com/your-username/idrc
  2. cd idrc
  3. npm install

How to Build

To build and serve a static version of the website, enter the following in your command line:

  1. npm run build
  2. npx serve _site

The website will be available at http://localhost:3000.

How to Start a Server for Development

To start the server in the development mode, enter the following in your command line:

  1. npm start

The website will be available at http://localhost:8080.

When the server runs in a development mode, changes to the source code will automatically trigger the server to rebuild.

How to Lint and Run Tests

To lint, enter the following in your command line:

  1. npm run lint

To run tests, enter the following in your command line:

  1. npm test

How to Deploy using Docker

This website can also be served with Docker container.

Once you have Docker installed, run the following commands to build a Docker image and start a container:

  • Build the image: docker build -t idrc .
  • Run the container: docker run --name idrc -p 8000:80 idrc

The website will be available at http://localhost:8000

  • To stop and remove the container: docker rm -f idrc

If you make changes to the code, repeat the steps to build the image and start a new container.