You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-6
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,8 @@ This project includes the boilerplate for a basic rest-api made in Node.JS with
11
11
5.`cp .example.env.test .env.test`
12
12
6. Create your DB (i.e. psql for Postgres: `psql -U <user> -h <host> -c "create database <db name>;"`) with same name as your .env file.
13
13
7. Run `ENV=[dev, test, prod] yarn db:setup`.
14
-
8. Start your server with `ENV=[dev, prod] yarn dev`.
14
+
8. Check Redis notes conf for running local.
15
+
9. Start your server with `ENV=[dev, prod] yarn dev`.
15
16
16
17
## Some scripts
17
18
@@ -58,18 +59,23 @@ Also, for configuring the SonarQube keys you can follow the next [steps](https:/
58
59
## Running with Docker
59
60
60
61
### Prerequisites
61
-
In order to run the app with Docker, you should install or update to the latest version, we recommend to install [Docker-Desktop](https://docs.docker.com/get-docker/) due to composer and some cool CLI-UI tools are included.
62
+
* In order to run the app with Docker, you should install or update to the latest version, we recommend to install [Docker-Desktop](https://docs.docker.com/get-docker/) due to composer and some cool CLI-UI tools are included.
63
+
* If you're running it local, don't forget to change REDIS_HOST to localhost into the .env.dev file.
62
64
63
65
### Development with Docker
64
-
65
66
The following commands will build and run all you need to start working on the base, without any other installation requirements. Important: if you already have postgres running locally, you'll need to kill the service before run `docker-compose up`.
66
67
67
68
```
68
69
docker-compose --env-file .env.dev build
69
70
```
70
71
71
72
```
72
-
docker-compose --env-file .env.dev up
73
+
docker-compose --env-file .env.dev up -d --no-recreate
74
+
```
75
+
76
+
if you only want to run redis and postgres and debug local:
77
+
```
78
+
docker-compose --env-file .env.dev up -d --no-recreate postgres redis
0 commit comments