From 96bb515a603499abb016d381f0bdb5bd51ebda92 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Mon, 27 Jun 2022 21:03:51 +1000 Subject: Enable client directly using server URL, while avoiding CORS restrictions --- README.md | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index d588496..e354e7e 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,27 @@ -# Grid of Life +# Tilo +Provides an interactive visualisation of the biological Tree of Life. -An interactive visualisation of the biological tree of life. - -Each tile represents a group of organisms with a common ancestor. -- Clicking on a tile expands it into tiles representing direct descendants. - If there are too many other tiles, there might not be room to expand. -- Clicking on an expanded tile collapses it back into one tile. -- Double-clicking on a tile expands it to fill the whole view. - Other tiles will be moved to the side. - -# Files -- package.json: Contains project information, including what packages need to be installed. +## Files +- package.json: Contains project information, including package dependencies. - src: Contains most of the client-side code. -- index.html: Holds code for the main page, into which code from src/ will be included. -- backend: Contains code for running the server, and generating tree-of-life data -- public: Contains files to be copied unchanged when building for production. +- index.html: Holds code for the main page, into which code from 'src' will be included. +- backend: Contains code for the server, and generating tree-of-life data +- vite.config.js: For configuring Vite. - tailwind.config.js: For configuring Tailwind. - postcss.config.js: For configuring Tailwind. - tsconfig.json: For configuring Typescript. -- vite.config.js: For configuring Vite. - .gitignore: Lists files to be ignored by Git. +- public: Contains files to be copied unchanged when building for production. + +## Overview +(TODO) + +## Setup Instructions +(TODO) + +## -# Overview -# Instructions +During development, a client request to the server on the same machine +would be blocked due to the Same Origin Policy. This is avoided by +adding an 'Access-Control-Allow-Origin: *' header to server responses. +This should be disabled during production. -- cgit v1.2.3