5614116-front-end-app's People
Forkers
gustavenimant gsgonzalez88 ve2abo pierrelstan clarencepenz dollariyke weezykon eliudfromkenya luckidubi faithnickodjones john-akins aragakerubo young-einstein10 anekenonso margaretgit dcolonel6 ejirocodes lanre039 ifejesu otabor1000 nully0x fof-github inedit81 sidney-kieran earjcr5614116-front-end-app's Issues
No userId
The front end doesnt send userId in its body when its getting all the Things. So the auth middleware always fail. i am talking about this bit.
`const jwt = require('jsonwebtoken');
module.exports = (req, res, next) => {
try {
const token = req.headers.authorization.split(' ')[1];
const decodedToken = jwt.verify(token, 'RANDOM_TOKEN_SECRET');
const userId = decodedToken.userId;
if (req.body.userId && req.body.userId !== userId) {
throw 'Invalid user ID';
} else {
next();
}
} catch {
res.status(401).json({
error: new Error('Invalid request!')
});
}
};`
Failed to Compile
The site gives me "failed to compile" error while running "ng serve".
Procedure for reproduction:
1.Clone git repo
2. 'cd' into 'frontend' folder
3. run 'ng serve'
Environment:
{ 'go-fullstack-frontend': '0.0.0',
npm: '6.7.0',
ares: '1.15.0',
brotli: '1.0.7',
cldr: '34.0',
http_parser: '2.8.0',
icu: '63.1',
llhttp: '1.1.1',
modules: '67',
napi: '4',
nghttp2: '1.34.0',
node: '11.12.0',
openssl: '1.1.1b',
tz: '2018e',
unicode: '11.0',
uv: '1.26.0',
v8: '7.0.276.38-node.18',
zlib: '1.2.11' }
Opensuse Tumbleweed x64
Terminal printout:
`Your global Angular CLI version (7.3.7) is greater than your local
version (6.2.4). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
Date: 2019-03-28T18:51:19.122Z
Hash: 49c636949de08c46524c
Time: 12445ms
chunk {main} main.js, main.js.map (main) 1.87 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 92.4 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.08 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 832 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 327 kB [initial] [rendered]
ERROR in src/app/part-four/mime-type.validator.ts(15,36): error TS2345: Argument of type 'string | ArrayBuffer' is not assignable t
o parameter of type 'ArrayBuffer | SharedArrayBuffer | ArrayLike'.
Type 'string' is not assignable to type 'ArrayBuffer | SharedArrayBuffer | ArrayLike'.
src/app/part-four/modify-thing-with-upload/modify-thing-with-upload.component.ts(85,9): error TS2322: Type 'string | ArrayBuffer' i
s not assignable to type 'string'.
Type 'ArrayBuffer' is not assignable to type 'string'.
src/app/part-four/new-thing-with-upload/new-thing-with-upload.component.ts(69,9): error TS2322: Type 'string | ArrayBuffer' is not
assignable to type 'string'.
Type 'ArrayBuffer' is not assignable to type 'string'.
ℹ 「wdm」: Failed to compile.`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.