Skip to content

Commit

Permalink
Merge pull request #10 from Systems-Development-and-Frameworks/exerci…
Browse files Browse the repository at this point in the history
…se-4

Exercise 4
  • Loading branch information
NicolasTsc committed Dec 30, 2020
2 parents 4159be0 + 2121f2e commit 968c21c
Show file tree
Hide file tree
Showing 17 changed files with 1,530 additions and 258 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ jobs:
npm run test
npm run lint
env:
CI: true
CI: true,
JWTSECRET: ${{ secrets.JWTSECRET }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
backend/node_modules
backend/.env
git-crypt-key
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ This is the homework repository for the group Felni from Felix and Nicolas.

### Exercise 3:

- Link to folder: [Apollo GraphQL Backend](./backend)

### Exercise 4:

- Link to folder: [Apollo GraphQL Backend](./backend)
1 change: 1 addition & 0 deletions backend/.env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
JWTSECRET=yourjwtsecret
4 changes: 4 additions & 0 deletions backend/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Apollo Backend

## Mandatory for running tests ´
Create a .env file in the root backend folder and add a secret JWTSECRET for signing the JWT token (e.g. JWTSECRET=yoursecret)
For easy use, you can use the already existing .env.template, renaming the file to .env (e.g. cp .env.template .env) and modifying the secret.

## Project setup
```
npm install
Expand Down

0 comments on commit 968c21c

Please sign in to comment.