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
+40-35Lines changed: 40 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@
15
15
- Run `mix meadow.setup`. This creates the Sequins pipeline, S3 buckets, and database.
16
16
- Install Node.js dependencies with `mix assets.install`
17
17
-`assets.install` looks for all `package-lock.json` files project-wide and runs `npm install` in each directory found, so you don't need to run `npm install` in individual directories.
18
-
- run `sg open all 3001`
18
+
- run `sgport open all 3001`
19
19
- Start the Phoenix server with `mix phx.server` (or `iex -S mix phx.server` if you want to an interactive shell).
20
20
21
21
Now you can visit [`https://[YOURENV].dev.rdc.library.northwestern.edu:3001/`](https://[YOURENV].dev.rdc.library.northwestern.edu:3001/) from your browser.
@@ -28,13 +28,14 @@ You can stop the Phoenix server with `Ctrl + C` twice
28
28
29
29
If you need to clear your data and reset the entire development environment, from `meadow/app` run:
30
30
31
-
```
31
+
```bash
32
32
mix ecto.reset
33
33
mix meadow.search.clear
34
34
mix meadow.pipeline.purge
35
35
clean-s3 dev -y
36
-
36
+
```
37
37
...then
38
+
```bash
38
39
mix deps.get
39
40
mix meadow.setup
40
41
mix phx.server
@@ -56,36 +57,30 @@ If you would like to interact directly with the database
56
57
57
58
### Run the Elixir test suite
58
59
59
-
#### Start Test Services
60
+
#### Start/Provision Test Environment
60
61
61
62
In one terminal:
63
+
```bash
64
+
make localstack-provision
62
65
```
63
-
cd infrastructure/localstack
64
-
docker compose up
65
-
```
66
-
67
-
#### Provision Test Environment
68
-
69
-
Watch the logs until the services seem to stabilize. Then, in another terminal:
You will probably see `Warning: AWS account ID not found for provider`, but this can be safely ignored.
79
66
80
67
#### Run Tests
81
68
82
-
```
69
+
```bash
83
70
cd app
84
-
export AWS_LOCALSTACK=true
71
+
export AWS_LOCALSTACK=true
85
72
mix test [test args...]
86
73
```
87
74
88
-
**Note:**`mix test` can be run repeatedly without re-provisioning as long as the Docker services are running. If you stop the services, you will need to run Terraform again. Also, do not try to run Meadow with `export AWS_LOCALSTACK=true` set.
75
+
**Note:** Do not try to run Meadow with `export AWS_LOCALSTACK=true` set.
76
+
77
+
#### Stop/Deprovision Test Environment
78
+
79
+
Back in the meadow root directory:
80
+
81
+
```bash
82
+
make localstack-stop
83
+
```
89
84
90
85
### GraphQL API
91
86
@@ -113,13 +108,13 @@ To force an Elasticsearch re-index, and not wait for the 2-minute cycle to kick
### Doing development on the Meadow Pipeline lambdas
256
251
257
-
In the AWS developer environment, the lambdas associated with the pipeline are shared amongst developers. In order to do development and see whether it's working you can override the configuration to use your local files instead of the deployed lambdas. Example below (you don't have to override them all. Just the ones you need).
252
+
In the AWS developer environment, the lambdas associated with the pipeline are shared amongst developers. In order to do development and see whether it's working you can override the configuration to use the SAM pipeline the deployed lambdas.
258
253
259
-
Edit `config/dev.local.exs` to get the lambdas to use the local copy through the port:`
0 commit comments