Skip to content

Commit

Permalink
Merge pull request #87 from neatht/v9.0.1/master
Browse files Browse the repository at this point in the history
🚀 Version 13.0.1
  • Loading branch information
taylor-johnston authored Nov 19, 2020
2 parents 50cb204 + 23abef1 commit f4c8786
Show file tree
Hide file tree
Showing 174 changed files with 22,192 additions and 4,317 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
server.cert
server.key
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1 align="center">🌏 Glowbal</h1>
<h1 align="center">🛰️<br>Glowbal</h1>

<div align="center">
<strong>An ePortfolio web app built on React and Express</strong>
Expand Down Expand Up @@ -34,14 +34,24 @@ These instructions will help you get a copy of the project up and running for de
Before building either servers, you will need an SSL certificate.
In the root directory, start by creating a certificate:
```
openssl req -x509 -newkey rsa:4096 -keyout server.key -out server.cert -days 365
openssl req -x509 -newkey rsa:4096 -keyout server.key -out server.cert -days 365 -nodes
```
To specify the certificates, in both `client` and `api`, add the following lines to the `.env`:
```
SSL_CRT_FILE=../server.cert
SSL_KEY_FILE=../server.key
```

Self signed SSL certificates may be rejected by applications for dev.
Some example workarounds:

```
In Chrome, into the address bar type, and enable:
chrome://flags/#allow-insecure-localhost
In Postman, disable SSL verification
```

#### 🖥 API Server: Express

First start by installing and running the Express backend in the `api` directory.
Expand Down Expand Up @@ -104,6 +114,13 @@ In should open automatically, however the app can be found at:
localhost:6006
```

### :computer: API: Stoplight

The backend routes are documented using [Stoplight](https://camelcase.stoplight.io)

It is hosted online at the above link.


## :raising_hand: Contributors

<table>
Expand Down
11 changes: 11 additions & 0 deletions api/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
clearMocks: true,
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'],
testEnvironment: "node",
transform: {
'^.+\\.tsx?$': 'ts-jest'
},
coveragePathIgnorePatterns: [
"/node_modules/"
]
};
Loading

0 comments on commit f4c8786

Please sign in to comment.