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
+20-3Lines changed: 20 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,23 @@ Environment based configuration using [Dotenv](https://www.npmjs.com/package/dot
13
13
14
14
Integration Testing with [SuperTest](https://github.com/visionmedia/supertest)
15
15
16
+
## Quickstart
17
+
```
18
+
npm install -g yarn
19
+
yarn install
20
+
# install docker https://docs.docker.com/install/
21
+
docker stack deploy -c local-infra.yml infra
22
+
# connect to postgres via postgres:password@localhost:5432
23
+
# create 'seed' user with password 'password'
24
+
# create 'seed' database and set the 'seed' user as the owner
25
+
# updated
26
+
cp .env.example .env
27
+
yarn run start
28
+
# wait for app to start
29
+
yarn global add sequelize-cli
30
+
sequelize db:seed:all
31
+
```
32
+
16
33
## Environment Setup
17
34
This project uses the [Dotenv](https://www.npmjs.com/package/dotenv) library to load sensitive data such
18
35
as database passwords and client secrets.
@@ -21,10 +38,10 @@ There is a `.env.example` file included at the root of this project as an exampl
21
38
for your project.
22
39
23
40
### RabbitMQ
24
-
Install and run [RabbitMQ](https://www.rabbitmq.com/) with the default settings
41
+
Install and run [RabbitMQ](https://www.rabbitmq.com/) with the default settings (or use the provided local-infra.yml in conjunction with docker-compose/swarm)
25
42
26
43
### Database
27
-
You will need a [PostgreSQL](https://www.postgresql.org) database running on localhost:5432
44
+
You will need a [PostgreSQL](https://www.postgresql.org) database running on localhost:5432 (or use the provided local-infra.yml in conjunction with docker-compose/swarm)
28
45
29
46
The setup of PostgreSQL is beyond the scope of this guide. Please reference the [Install Guides](https://wiki.postgresql.org/wiki/Detailed_installation_guides)
30
47
for help installing PostgreSQL on your machine.
@@ -43,7 +60,7 @@ You can also run the app in debug mode and attach a [Debugger](https://www.jetbr
43
60
Once the app is running and the tables are created, you can seed the database with the sequelize-cli.
0 commit comments