Skip to content

ecds/beckett-search-ui

Repository files navigation

beckett-search-ui

The frontend for the ECDS Beckett Letters project, built with React and Searchkit/ElasticSearch, bundled with Vite, and using the beckett-data-api developed by Jay Varner.

Requirements

  • Node.JS v16.x
  • NPM v8.x

This project uses Volta to pin Node and NPM versions, and Vite as a bundler.

Development

Getting started

To start developing on this project, first install the dependencies with NPM:

npm install

Then, you must configure environment variables. Copy the sample file to .env.local:

cp .env.local.sample .env.local

Edit the new .env.local file with the required values. This file will not be checked into Git.

Scripts

npm run dev

Runs the project in development mode, with hot module reloading, served from http://localhost:5173/.

npm run build

Builds the project as a static site and saves the output to the ./dist directory.

npm run preview

(must be run after build) Serves the built output from the ./dist directory on a local web server.

Code style and linting

This project uses ESLint to manage code style, catch errors, and enforce consistency.

If you are using VSCode, you may wish to install the ESLint extension. Then, you can create a file called .vscode/settings.json. Using the below settings, you can specify that ESLint will auto-fix any style errors on saving a file:

{
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },
    "eslint.validate": ["javascript"]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages