Skip to content

Commit 1b1fb3a

Browse files
authored
Merge pull request #70 from CodeForBaltimore/HOTFIX-unauth-expiry-fix
fix: Authorization fix
2 parents 3d0aa99 + 0f936fc commit 1b1fb3a

30 files changed

+3138
-1037
lines changed

Bmore-Responsive.postman_collection.json

Lines changed: 682 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,13 @@
11
[![Build Status](https://travis-ci.org/CodeForBaltimore/Bmore-Responsive.svg?branch=master)](https://travis-ci.org/CodeForBaltimore/Bmore-Responsive) [![codecov](https://codecov.io/gh/CodeForBaltimore/Bmore-Responsive/branch/master/graph/badge.svg)](https://codecov.io/gh/CodeForBaltimore/Bmore-Responsive) [![Known Vulnerabilities](https://snyk.io/test/github/CodeForBaltimore/Bmore-Responsive/badge.svg)](https://snyk.io/test/github/CodeForBaltimore/Bmore-Responsive)
2-
<!-- TOC -->
3-
- [1. Bmore Responsive](#1-bmore-responsive)
4-
- [1.1. Documentation](#11-documentation)
5-
- [1.1.1. API Spec](#111-api-spec)
6-
- [1.1.2. Database Documentation](#112-database-documentation)
7-
- [2. Setup](#2-setup)
8-
- [2.1. Node and Express setup](#21-node-and-express-setup)
9-
- [2.2. Environment variables](#22-environment-variables)
10-
- [2.3. PostgreSQL](#23-postgresql)
11-
- [2.3.1. Sequelize](#231-sequelize)
12-
- [2.4. Docker](#24-docker)
13-
- [3. Using this product](#3-using-this-product)
14-
- [3.1. Testing](#31-testing)
15-
- [4. Sources and Links](#4-sources-and-links)
16-
<!-- /TOC -->
2+
<!-- TOC -->autoauto- [1. Bmore Responsive](#1-bmore-responsive)auto - [1.1. Documentation](#11-documentation)auto - [1.1.1. API Spec](#111-api-spec)auto - [1.1.2. Database Documentation](#112-database-documentation)auto- [2. Setup](#2-setup)auto - [2.1. Node and Express setup](#21-node-and-express-setup)auto - [2.2. Environment variables](#22-environment-variables)auto - [2.3. PostgreSQL](#23-postgresql)auto - [2.3.1. Sequelize](#231-sequelize)auto - [2.4. Docker](#24-docker)auto- [3. Using this product](#3-using-this-product)auto - [3.1. Testing](#31-testing)auto- [4. Sources and Links](#4-sources-and-links)autoauto<!-- /TOC -->
173
# 1. Bmore Responsive
184
An API to drive disaster and emergency response systems.
195

206
## 1.1. Documentation
217
We've included a `docs` folder with a template [Tech Spec](/docs/Tech_Spec.md) and [Best Practices](/docs/Best_Practices.md) document, though using Github's Wiki capabilities is also a good idea. This will get you started with documenting your project. Other documents and relevant information that has no other place can live in the `docs` folder. Replace this paragraph with a brief breakdown of what you've included in your `docs` folder.
228

239
### 1.1.1. API Spec
24-
Our API spec is on Swagger. You can view it here https://app.swaggerhub.com/apis/codeforbaltimore/bmoreResponsive/1.0.0#/ or you can find the `swagger.json` file in our `docs` folder.
10+
Our API spec is on Swagger. You can view it here https://app.swaggerhub.com/apis/codeforbaltimore/bmoreResponsive/1.0.0#/ or you can find the `swagger.json` file in our `docs` folder and use it via http://localhost:3000 when the app is running locally.
2511

2612
### 1.1.2. Database Documentation
2713
Our database documentation can be found in our `docs` folder under `database.csv`. This documentation was created using SchemaSpy. Instructions for use can be found here https://github.com/bcgov/schemaspy

docker-compose.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
version: '3'
22
services:
33
api:
4-
image: bmoreres
4+
build: .
55
depends_on:
66
- db
77
links:
88
- "db: database"
99
ports:
1010
- '3000:3000'
11-
command: >
12-
sh -c "npm run db-create &&
13-
npm start"
11+
command: >
12+
sh -c "npm run db-delete &&
13+
npm run db-create &&
14+
npm run db-seed &&
15+
npm start"
1416
volumes:
1517
- .:/app/
1618
- /app/node_modules

docs/img/db-diagram.png

45.3 KB
Loading

0 commit comments

Comments
 (0)