Skip to content

Commit 5b9a53c

Browse files
committed
-
1 parent 24db634 commit 5b9a53c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

APPROACH.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ This file contains some comments about the decisions which were made.
6666
1. [purescript-simple-jwt](https://github.com/oreshinya/purescript-simple-jwt) is used for token encoding/decoding. Only a secret key and the userId are used. There is no token expiration date. This could be improved.
6767
1. Tests:
6868
1. Setting `origin` in the tests was not possible (Error message: `Refused to set unsafe header "origin"`). I had to mock the function.
69-
1. The test case request and response bodies can be found under `test/Server/<domain>/<file>`. This way they can be used via *HTTPie* and with automated testing.
69+
1. The test case request and response bodies can be found under `test/Server/<domain>/<file>`. This way, they can be used via *HTTPie* and with automated testing.
7070
1. Frontend:
7171
1. [purescript-halogen-realword](https://github.com/thomashoneyman/purescript-halogen-realworld) did not work for update user and post comments. See <https://github.com/thomashoneyman/purescript-halogen-realworld/issues/78>.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ This is a learning project in order to set up a REST API with [PureScript Payloa
2525

2626
1. Database Setup:
2727
1. Install PostgreSQL.
28-
1. Set up a database called `conduit`. An example script can be found under [sql/CreateDB.sql](./sql/CreateDB.sql). Change [config/Server/Dev.json](./config/Server/Dev.json) accordingly.
28+
1. Set up a database called `conduit` with [sql/CreateDB.sql](./sql/CreateDB.sql). Change [config/Server/Dev.json](./config/Server/Dev.json) accordingly, if you make alterations.
2929
1. Install the database function `timestamp_to_char` under [sql/Functions.sql](./sql/Functions.sql), either the production or mock version in order to run the tests.
3030
1. Create tables with
3131

3232
```sh
3333
spago run -m Test.ResetTables
34-
# or for tables with test data
34+
# or for tables with test data run the tests
3535
spago run -m Test.Main
3636
```
3737

0 commit comments

Comments
 (0)