Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2023-030
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-030
2023-030
Commits
b81389e4
Commit
b81389e4
authored
Nov 05, 2023
by
W.D Nilakshi Sandeepanie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload index.js
parent
217e1814
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
backend/index.js
backend/index.js
+14
-0
No files found.
backend/index.js
0 → 100644
View file @
b81389e4
const
express
=
require
(
'
express
'
)
const
bodyParser
=
require
(
'
body-parser
'
)
const
cors
=
require
(
'
cors
'
)
var
Main
=
require
(
'
./routes/Main
'
)
var
app
=
express
()
app
.
use
(
bodyParser
.
json
({
limit
:
'
50mb
'
}));
app
.
use
(
bodyParser
.
urlencoded
({
limit
:
'
50mb
'
,
extended
:
true
}));
app
.
use
(
cors
({
origin
:
'
*
'
}))
app
.
listen
(
3500
,()
=>
console
.
log
(
'
Server started at : 3500
'
))
app
.
use
(
'
/Main
'
,
Main
)
app
.
use
(
express
.
static
(
'
public
'
))
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment