Skip to content

Latest commit

 

History

History
84 lines (58 loc) · 1.16 KB

CONTRIBUTING.md

File metadata and controls

84 lines (58 loc) · 1.16 KB

Contributing

Prerequisites

  • Groups vra_p_svc0012.
  • Keybase epfl_search.
  • Access to ghcr.io via a personal access tokens (PATs).

Setup

git clone [email protected]:epfl-si/search-api.git
cd search-api
npm i

Lint

# Prettier and ESlint
npm run prettier
npm run lint

# Options
npm run prettier:fix
npm run lint:fix

Test

npm test
npm run test:coverage
npm run test:watch

Start

# Development
make start

# Set up access Cadi DB staging (for Unit tab)
ssh -f [email protected] -L 33306:db-cadi-staging.epfl.ch:3306 -N

# Production
make up

Debug

VS Code

Debugging configuration is stored in the launch.json file. Select the Run and Debug icon in the Activity Bar and press F5.

Chrome

Start the server with the debugger daemon:

make inspect

Open Chrome Developer Tools and click the green Node.js icon.

Release

Bump package.json, update CHANGELOG.md and

git tag -a v<version> -m "Search API - v<version>"
git push origin main --tags

Deploy

# Help
./ansible/searchapisible --help

# Production
./ansible/searchapisible --prod