Skip to content

Commit 3fe2441

Browse files
authored
docketeer x | nyoi2 (#131)
docketeer x | nyoi2
2 parents f294c36 + 4dd10ef commit 3fe2441

File tree

184 files changed

+7438
-10332
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+7438
-10332
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.eslintrc.js

Lines changed: 62 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,62 @@
1-
module.exports = {
2-
env: {
3-
browser: true,
4-
commonjs: true,
5-
es2021: true,
6-
node: true,
7-
},
8-
plugins: [
9-
'react',
10-
'@typescript-eslint'
11-
],
12-
extends: [
13-
'eslint:recommended',
14-
'plugin:react/recommended',
15-
'plugin:@typescript-eslint/recommended'
16-
],
17-
ignorePatterns: [
18-
'.eslintrc.js',
19-
'*.config.js',
20-
'dist/*',
21-
'__tests__/*'
22-
],
23-
overrides: [
24-
],
25-
parserOptions: {
26-
ecmaVersion: 12,
27-
sourceType: 'module'
28-
},
29-
settings: {
30-
react: {
31-
version: 'detect'
32-
}
33-
},
34-
rules: {
35-
indent: ['warn', 2],
36-
'no-unused-vars': ['off', { vars: 'local' }],
37-
'prefer-const': 'warn',
38-
quotes: ['warn', 'single'],
39-
semi: ['warn', 'always'],
40-
'space-infix-ops': 'warn',
41-
'no-console': 'off',
42-
'no-restricted-syntax': [
43-
'error',
44-
{
45-
selector:
46-
"CallExpression[callee.object.name='console'][callee.property.name!=/^(log|warn|error|info|trace)$/]",
47-
message: 'Unexpected property on console object was called',
48-
},
49-
],
50-
'spaced-comment': [
51-
'error',
52-
'always',
53-
{
54-
line: {
55-
markers: ['/'],
56-
exceptions: ['-', '+'],
57-
},
58-
block: {
59-
markers: ['!'],
60-
exceptions: ['*'],
61-
balanced: true,
62-
},
63-
},
64-
],
65-
66-
// ---- TYPESCRIPT ---- //
67-
'@typescript-eslint/explicit-function-return-type': 'off',
68-
"@typescript-eslint/no-unused-vars": "error",
69-
'@typescript-eslint/semi': ['warn', 'always']
70-
}
71-
};
1+
// module.exports = {
2+
// env: {
3+
// browser: true,
4+
// commonjs: true,
5+
// es2021: true,
6+
// node: true,
7+
// },
8+
// plugins: ['react', '@typescript-eslint'],
9+
// extends: [
10+
// 'eslint:recommended',
11+
// 'plugin:react/recommended',
12+
// 'plugin:@typescript-eslint/recommended',
13+
// ],
14+
// ignorePatterns: ['.eslintrc.js', '*.config.js', 'dist/*', '__tests__/*'],
15+
// overrides: [],
16+
// parserOptions: {
17+
// ecmaVersion: 12,
18+
// sourceType: 'module',
19+
// },
20+
// settings: {
21+
// react: {
22+
// version: 'detect',
23+
// },
24+
// },
25+
// rules: {
26+
// indent: ['warn', 2],
27+
// 'no-unused-vars': ['off', { vars: 'local' }],
28+
// 'prefer-const': 'warn',
29+
// quotes: ['warn', 'single'],
30+
// semi: ['warn', 'always'],
31+
// 'space-infix-ops': 'warn',
32+
// 'no-console': 'off',
33+
// 'no-restricted-syntax': [
34+
// 'error',
35+
// {
36+
// selector:
37+
// "CallExpression[callee.object.name='console'][callee.property.name!=/^(log|warn|error|info|trace)$/]",
38+
// message: 'Unexpected property on console object was called',
39+
// },
40+
// ],
41+
// 'spaced-comment': [
42+
// 'error',
43+
// 'always',
44+
// {
45+
// line: {
46+
// markers: ['/'],
47+
// exceptions: ['-', '+'],
48+
// },
49+
// block: {
50+
// markers: ['!'],
51+
// exceptions: ['*'],
52+
// balanced: true,
53+
// },
54+
// },
55+
// ],
56+
//
57+
// // ---- TYPESCRIPT ---- //
58+
// '@typescript-eslint/explicit-function-return-type': 'off',
59+
// '@typescript-eslint/no-unused-vars': 'error',
60+
// '@typescript-eslint/semi': ['warn', 'always'],
61+
// },
62+
// };

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ security/
1313
.env
1414

1515
coverage/
16+
17+
out/
18+
docketeerdb

.travis.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

CODE_OF_CONDUCT.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
3333

3434
## Our Responsibilities
3535

Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Use an official Node.js runtime as a parent image
2+
FROM node
3+
# Set the working directory to /app
4+
WORKDIR /app
5+
6+
COPY package*.json ./
7+
8+
# Run npm install to install app dependencies
9+
RUN npm install
10+
11+
# Set the PATH env variable
12+
# ENV PATH="/usr/local/bin:${PATH}"
13+
# COPY /usr/local/bin/docker /usr/local/bin/docker
14+
ENV DOCKERVERSION=19.03.12
15+
RUN curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKERVERSION}.tgz \
16+
&& tar xzvf docker-${DOCKERVERSION}.tgz --strip 1 -C /usr/local/bin docker/docker \
17+
&& rm docker-${DOCKERVERSION}.tgz
18+
19+
# Copy the current directory contents into the container at /app
20+
COPY . .
21+
22+
# Make port 4000 available to the world outside this container
23+
EXPOSE 4000
24+
25+
# Start the app
26+
CMD ["npm", "start"]
27+
28+

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ root
5656

5757
```js
5858
// .env
59-
TWILIO_NUMBER = "";
60-
TWILIO_ACCOUNT_SID = "";
61-
TWILIO_AUTH_TOKEN = "";
62-
SERVICE_SID = "";
63-
VERIFICATION_SERVICE_SID = "";
64-
SLACK_WEBHOOK = "";
65-
POSTGRES_URI = "";
59+
TWILIO_NUMBER = '';
60+
TWILIO_ACCOUNT_SID = '';
61+
TWILIO_AUTH_TOKEN = '';
62+
SERVICE_SID = '';
63+
VERIFICATION_SERVICE_SID = '';
64+
SLACK_WEBHOOK = '';
65+
POSTGRES_URI = '';
6666
```
6767

6868
5. Create a folder called `security` in the project's top-level directory. Inside of the `security` folder, create two files `email.js` and `sysadmin.js`. These files will store variables related to the email notification service and system admin setup respectively.
@@ -82,10 +82,10 @@ root
8282
```js
8383
// email.js
8484
module.exports = {
85-
host: "smtp.gmail.com",
85+
host: 'smtp.gmail.com',
8686
port: 465,
87-
username: "[email protected]",
88-
password: "belugas",
87+
username: '[email protected]',
88+
password: 'belugas',
8989
};
9090
```
9191

@@ -94,8 +94,8 @@ module.exports = {
9494
```js
9595
// sysadmin.js
9696
module.exports = {
97-
phone: "",
98-
email: "",
97+
phone: '',
98+
email: '',
9999
};
100100
```
101101

@@ -115,11 +115,11 @@ For now, the sign up function will create a System Admin user.
115115

116116
```js
117117
// .env.js
118-
MY_PHONE_NUMBER = "your mobile number";
119-
TWILIO_ACCOUNT_SID = "code from your console";
120-
TWILIO_AUTH_TOKEN = "token from your console";
121-
SERVICE_SID = "code from notify service instance";
122-
VERIFICATION_SERVICE_SID = "code from verify service instance";
118+
MY_PHONE_NUMBER = 'your mobile number';
119+
TWILIO_ACCOUNT_SID = 'code from your console';
120+
TWILIO_AUTH_TOKEN = 'token from your console';
121+
SERVICE_SID = 'code from notify service instance';
122+
VERIFICATION_SERVICE_SID = 'code from verify service instance';
123123
```
124124

125125
4. Verification service was created [here](https://www.twilio.com/console/verify/services); code length and serviceSID can be taken from your Twilio account console.

assets/.DS_Store

-2 KB
Binary file not shown.

assets/archive/.DS_Store

-6 KB
Binary file not shown.
-248 KB
Binary file not shown.

0 commit comments

Comments
 (0)