Skip to content

Commit c253a70

Browse files
authored
Merge pull request #1 from stowns/master
rename .env -> .env.example and added .env to .gitignore. will force …
2 parents 7c72a4c + 76a898d commit c253a70

File tree

9 files changed

+30
-9
lines changed

9 files changed

+30
-9
lines changed

.env.example

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
JWT_SECRET=qfPFRkqM4ZF92h9NeZtqAArQ
2+
3+
FACEBOOK_CLIENT_ID={your facebook client id}
4+
FACEBOOK_SECRET={your facebook secret}
5+
6+
GOOGLE_CLIENT_ID={your google client id}
7+
GOOGLE_SECRET={your google secret}
8+
9+
DB_NAME=seed
10+
DB_USERNAME=seed
11+
DB_PASSWORD=password
12+
13+
AWS_REGION={your region}
14+
AWS_ACCESS_KEY_ID={your access key}
15+
AWS_SECRET_ACCESS_KEY={your secret key}
16+
17+
LOG_LEVEL=debug
18+
19+
NODE_ENV=development
20+
21+
S3_PROFILE_PIC_URL= {your s3 profile pic url e.g., https://s3.amazonaws.com/yourapp/profileImages}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ assets/
1111
npm-debug.log
1212
tests/sqlite.db
1313
*.log
14-
*.iml
14+
*.iml
15+
.env

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ Integration Testing with [SuperTest](https://github.com/visionmedia/supertest)
1717
This project uses the [Dotenv](https://www.npmjs.com/package/dotenv) library to load sensitive data such
1818
as database passwords and client secrets.
1919

20-
There is a `.env` file included at the root of this project as an example, but
21-
you should never check this file into your source control. Update the `.env` file with the pertinent information
22-
for your project and remove it from your source control system.
20+
There is a `.env.example` file included at the root of this project as an example, rename it to '.env' (.env is not under version control). Update the `.env` file with the pertinent information
21+
for your project.
2322

2423
### RabbitMQ
2524
Install and run [RabbitMQ](https://www.rabbitmq.com/) with the default settings
File renamed without changes.

managers/EmailManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {MessageManager} from "./MessageManager";
22
import {MessageQueueEnum} from "../models/enums/MessageQueueEnum";
33
import AWS = require('aws-sdk');
4-
import {logger} from "../logger";
4+
import {logger} from "../lib/logger";
55

66
export class EmailManager extends MessageManager {
77

managers/MessageManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {MessageError} from "../errors/MessageError";
2-
import {logger} from "../logger";
2+
import {logger} from "../lib/logger";
33

44
export abstract class MessageManager {
55

managers/S3Manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {MessageManager} from "./MessageManager";
22
import {MessageQueueEnum} from "../models/enums/MessageQueueEnum";
33
import AWS = require('aws-sdk');
4-
import {logger} from "../logger";
4+
import {logger} from "../lib/logger";
55

66
export class S3Manager extends MessageManager {
77

managers/UserManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {RoleEnum} from "../models/enums/RoleEnum";
44
import {Auth} from "../auth/auth";
55
import {AuthError} from "../errors/AuthError";
66
import {S3Manager} from "./S3Manager";
7-
import {logger} from "../logger";
7+
import {logger} from "../lib/logger";
88

99
export class UserManager {
1010

server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {errorHandler} from "./errors/ErrorHandler";
1111
import {Roles} from "./auth/roles";
1212
import {MessageManager} from "./managers/MessageManager";
1313
import {InternalServerError} from "./errors/InternalServerError";
14-
import {logger} from "./logger";
14+
import {logger} from "./lib/logger";
1515
import morgan = require("morgan");
1616

1717
const amqplib = require('amqplib');

0 commit comments

Comments
 (0)