Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Commit 2ea244e

Browse files
committed
feat(signup): implement the signup functionality
- create pageview for the required component - create header and button components - implement routing to the signup page. - connect the signup component to the redux store. [Delivers #164034018]
1 parent a6a731c commit 2ea244e

33 files changed

+1668
-270
lines changed

.eslintignore

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
/node_modules
2-
3-
/public/dist
1+
/dist
2+
/node_modules/**
3+
/.env/**
4+
.eslintrc.json
5+
package.json
6+
package-lock.json

.eslintrc.js

-8
This file was deleted.

.eslintrc.json

+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
{
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:import/errors",
5+
"plugin:import/warnings",
6+
"airbnb"
7+
],
8+
"parser":"babel-eslint",
9+
"plugins": [
10+
"react"
11+
],
12+
"parserOptions": {
13+
"ecmaVersion": 6,
14+
"sourceType": "module",
15+
"ecmaFeatures": {
16+
"jsx": true
17+
}
18+
},
19+
"env": {
20+
"es6": true,
21+
"browser": true,
22+
"node": true,
23+
"jquery": true,
24+
"jest": true
25+
},
26+
"rules": {
27+
"one-var": 0,
28+
"one-var-declaration-per-line": 0,
29+
"new-cap": 0,
30+
"consistent-return": 0,
31+
"no-param-reassign": 0,
32+
"react/button-has-type":0,
33+
"comma-dangle": 0,
34+
"curly": ["error", "multi-line"],
35+
"import/no-unresolved": [2, { "commonjs": true }],
36+
"function-paren-newline": [
37+
"error",
38+
"consistent"
39+
],
40+
"object-curly-newline": ["error", { "consistent": true }],
41+
"no-shadow": ["error", { "allow": ["req", "res", "err"] }],
42+
"quotes": 0,
43+
"no-console": 1,
44+
"no-debugger": 1,
45+
"no-var": 1,
46+
"semi": [1, "always"],
47+
"no-trailing-spaces": 2,
48+
"eol-last": 2,
49+
"no-unused-vars": 2,
50+
"no-underscore-dangle": 0,
51+
"no-alert": 0,
52+
"no-lone-blocks": 0,
53+
"jsx-a11y/label-has-associated-control": [ 2, {
54+
"labelComponents": [],
55+
"labelAttributes": [],
56+
"controlComponents": [],
57+
"depth": 3
58+
}],
59+
"jsx-a11y/label-has-for": 0,
60+
"jsx-quotes": 1,
61+
"react/display-name": [1, { "ignoreTranspilerName": false }],
62+
"react/forbid-prop-types": [1, { "forbid": ["any"] }],
63+
"react/jsx-boolean-value": 1,
64+
"react/jsx-closing-bracket-location": 0,
65+
"react/jsx-curly-spacing": 1,
66+
"react/jsx-indent-props": 0,
67+
"react/jsx-key": 1,
68+
"react/jsx-max-props-per-line": 0,
69+
"react/jsx-no-bind": [ 1, {
70+
"ignoreDOMComponents": false,
71+
"ignoreRefs": false,
72+
"allowArrowFunctions": false,
73+
"allowFunctions": false,
74+
"allowBind": true
75+
}],
76+
"react/jsx-no-duplicate-props": 1,
77+
"react/jsx-no-literals": 0,
78+
"react/jsx-no-undef": 1,
79+
"react/jsx-pascal-case": 1,
80+
"react/jsx-sort-prop-types": 0,
81+
"react/jsx-sort-props": 0,
82+
"react/jsx-uses-react": 1,
83+
"react/jsx-uses-vars": 1,
84+
"react/no-danger": 1,
85+
"react/no-did-mount-set-state": 1,
86+
"react/no-did-update-set-state": 1,
87+
"react/no-direct-mutation-state": 1,
88+
"react/no-multi-comp": 0,
89+
"react/no-set-state": 0,
90+
"jsx-a11y/anchor-is-valid": 0,
91+
"react/no-unknown-property": 1,
92+
"react/prefer-es6-class": 1,
93+
"class-methods-use-this": 0,
94+
"react/prop-types": 1,
95+
"react/react-in-jsx-scope": 1,
96+
"react/require-extension": 0,
97+
"react/self-closing-comp": 1,
98+
"react/sort-comp": 1,
99+
"react/wrap-multilines": 0,
100+
"react/jsx-filename-extension": 0,
101+
"react/no-unescaped-entities":["error", { "forbid": [] }],
102+
"import/no-extraneous-dependencies": [
103+
"error",
104+
{
105+
"devDependencies": true
106+
}
107+
]
108+
}
109+
}

index.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const express = require('express');
2+
const path = require('path');
3+
4+
const app = express();
5+
6+
app.use(express.static(`${__dirname}/dist/`));
7+
8+
app.get('*', (req, res) => {
9+
res.sendFile(path.resolve(__dirname, './dist/index.html'));
10+
});
11+
12+
const PORT = process.env.PORT || 5000;
13+
14+
const { log } = console;
15+
app.listen(PORT, () => {
16+
log('Server started on port: ', PORT);
17+
});

0 commit comments

Comments
 (0)