Skip to content

Commit

Permalink
Auto formato y remove de imports innecesarios
Browse files Browse the repository at this point in the history
  • Loading branch information
uo277306 committed May 1, 2022
1 parent 72d4308 commit 69618f8
Show file tree
Hide file tree
Showing 45 changed files with 2,500 additions and 2,269 deletions.
113 changes: 77 additions & 36 deletions webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions webapp/server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import express,{Application} from 'express';
import express, { Application } from 'express';
//for using an import here we need to configure the tsconfig.json
//setting the option module to commonjs

Expand All @@ -8,8 +8,8 @@ const port: number = 3000;
app.use(express.static('build'))
app.use(express.static('public'));

app.listen(port, ():void => {
console.log('Webapp started on port '+ port);
}).on("error",(error:Error)=>{
app.listen(port, (): void => {
console.log('Webapp started on port ' + port);
}).on("error", (error: Error) => {
console.error('Error occured: ' + error.message);
});
Loading

0 comments on commit 69618f8

Please sign in to comment.