Skip to content

Commit

Permalink
Impove readme.md add more seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanVqz committed Mar 1, 2024
1 parent e16a8da commit 44d46fd
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 20 deletions.
43 changes: 24 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# ASISTENCIA CLINICA

[![Maintainability](https://api.codeclimate.com/v1/badges/09e3708ac24f9016f6fd/maintainability)](https://codeclimate.com/github/JuanVqz/doctors/maintainability)
[![current rails build](https://github.com/JuanVqz/doctors/actions/workflows/current-rails-app.yml/badge.svg)](https://github.com/JuanVqz/doctors/actions/workflows/current-rails-app.yml)
[![current rails build](https://github.com/JuanVqz/doctors/actions/workflows/tests.yml/badge.svg)](https://github.com/JuanVqz/doctors/actions/workflows/tests.yml)
[![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/testdouble/standard)


Es un sistema donde las instituciones clinicas podran registrar doctores para
tomar consultas de los pacientes y conservar el historial clinico.

![dashboard](dash.png)

## Requisitos

- ruby 3.0.3
Expand All @@ -21,7 +24,7 @@ de desarrollo, si ejecuta las semillas existe un subdominio `demo`
y debes ingresar de la siguiente manera.

```sh
git clone https://[email protected]/JuanVqz/doctors.git
git clone https://github.com/JuanVqz/doctors.git
cd doctors

# con docker
Expand Down Expand Up @@ -54,6 +57,24 @@ docker-compose up next
docker-compose run --rm next bash
```

## Deploy

### Reiniciar base de datos | Warning: Perderá toda la información

```bash
heroku restart; heroku pg:reset DATABASE --confirm heroku_doctors;
heroku run rails db:migrate
heroku run rails db:seed
heroku run rails console
```

## Desarrollo

Si esta interesado en contribuir al desarrollo comprando un subdominio
puede [contactarnos.](https://github.com/JuanVqz)

## Deprecado

## Importar información (opcional)

Los Doctores que utilizan nuestro servicio habian usado un sistema llamado Bento.
Expand Down Expand Up @@ -86,18 +107,7 @@ rake import:doctor_name:patients
rake import:doctor_name:medical_consultation
```

## Deploy

### Reiniciar base de datos | Warning: Perderá toda la información

```bash
heroku restart; heroku pg:reset DATABASE --confirm heroku_doctors;
heroku run rails db:migrate
heroku run rails db:seed
heroku run rails console
```

#### Deploy (deprecado)
#### Deploy

Antes de realizar el deploy puedes verificar los requisitos con:

Expand All @@ -116,8 +126,3 @@ Despues de realizar el deploy, tienes que reiniciar unicorn con el comando sigui
```sh
cap production unicorn:start
```

## Desarrollo

Si esta interesado en contribuir al desarrollo comprando un subdominio
puede [contactarnos.](https://github.com/JuanVqz)
Binary file added dash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
doctor.patients << patient

Rails.logger.debug { "Creating #{patient} Appoinments" }
10.times do
30.times do
Appoinment.create(
reason: FFaker::Lorem.phrase, note: FFaker::HTMLIpsum.p,
prescription: FFaker::Lorem.paragraph, recommendations: FFaker::Lorem.paragraph,
Expand Down

0 comments on commit 44d46fd

Please sign in to comment.