# SItCOM CRM

License : MIT.

## Development

```sh
bundle install
bundle exec rails db:migrate:reset
bundle exec rails db:seed
bundle exec rails app:bootstrap
bundle exec rake environment elasticsearch:import:all FORCE=true
bundle exec rails server
```

```sh
yarn
./bin/webpack-dev-server
```

```sh
bundle exec sidekiq -c 1
```

### Run an ElasticSearch 7.4.2 container (optional)

```sh
docker run --name elasticsearch-sitcom --restart=always -d -p 9201:9200 -p 9301:9300 -e "discovery.type=single-node" -v "$PWD/.docker/elasticsearch/data":/usr/share/elasticsearch/data elasticsearch:7.4.2
```

## Tests

```sh
bundle install
RAILS_ENV=test bundle exec rails db:create
RAILS_ENV=test bundle exec rails db:migrate
bundle exec rspec
```

## Production

See `DEPLOY.md` on how to deploy on a Debian server.

# SItCOM CRM

License : MIT.

## Development

```sh
bundle install
bundle exec rails db:migrate:reset
bundle exec rails db:seed
bundle exec rails app:bootstrap
bundle exec rake environment elasticsearch:import:all FORCE=true
bundle exec rails server
```

```sh
yarn
./bin/webpack-dev-server
```

```sh
bundle exec sidekiq -c 1
```

### Run an ElasticSearch 7.4.2 container (optional)

```sh
docker run --name elasticsearch-sitcom --restart=always -d -p 9201:9200 -p 9301:9300 -e "discovery.type=single-node" -v "$PWD/.docker/elasticsearch/data":/usr/share/elasticsearch/data elasticsearch:7.4.2
```

## Tests

```sh
bundle install
RAILS_ENV=test bundle exec rails db:create
RAILS_ENV=test bundle exec rails db:migrate
bundle exec rspec
```

## Production

See `DEPLOY.md` on how to deploy on a Debian server.

## Misc

SItCOM CRM uses [Bugsnag](https://bugsnag.com) for bugtracking.
![Bugsnag](https://avatars3.githubusercontent.com/u/1058895?s=200&v=4)

Add Bugsnag link for free tier eligibility
Add Bugsnag link for free tier eligibility
