56 lines
1012 B
Markdown
56 lines
1012 B
Markdown
# Sealious app
|
|
|
|
## Requirements
|
|
|
|
- docker
|
|
- docker-compose (version 2.6 or up)
|
|
- tmux
|
|
|
|
## Installation
|
|
|
|
```
|
|
npm install
|
|
```
|
|
|
|
## Running the app in development mode
|
|
|
|
```
|
|
npx sealgen make-env
|
|
docker-compose up -d db mailcatcher meilisearch
|
|
npm run watch
|
|
```
|
|
|
|
## Adding a component
|
|
|
|
```
|
|
npx sealgen add-component
|
|
```
|
|
|
|
And then go to `localhost:8080/components` to preview your custom component
|
|
|
|
## Testing
|
|
|
|
First time after installing the project run this command to download firefox
|
|
|
|
```
|
|
npx playwright install firefox
|
|
```
|
|
|
|
And then
|
|
|
|
```
|
|
npm run test
|
|
```
|
|
|
|
The tests don't run webhint by default - it's delegated to run on Jenkins.
|
|
|
|
If Jenkins complains about a webhint issue and you'd like to reproduce that on your local machine, run
|
|
|
|
```
|
|
npm run full-test
|
|
```
|
|
|
|
The tests run in pararell mode by default, to speed things up. Because of that, the
|
|
`.only` syntax doesn't work. To run tests without pararell mode, run `npm run full-test
|
|
--serial` - you can then use the `.only` syntax to run a particular test
|