Skip to content
Snippets Groups Projects
Commit 110535e8 authored by abdullah Bin Zubair's avatar abdullah Bin Zubair
Browse files

Initial setup Express

parent 8cc11936
No related branches found
No related tags found
No related merge requests found
node_modules/
\ No newline at end of file
This diff is collapsed.
{
"name": "wp_tech_nodejs_task",
"version": "1.0.0",
"description": "WP_tech nodejs Task",
"main": "server.js",
"scripts": {
"server": "nodemon server"
},
"repository": {
"type": "git",
"url": "https://gitlab.liu.se/abdzu618/wp_tech_nodejs_task.git"
},
"author": "Abdullah Bin Zubair",
"license": "MIT",
"dependencies": {
"bcryptjs": "^2.4.3",
"config": "^3.3.9",
"express": "^4.18.2",
"express-validator": "^6.14.2",
"jsonwebtoken": "^9.0.0"
},
"devDependencies": {
"nodemon": "^2.0.20"
}
}
const express = require('express');
const app= express();
app.get('/', (req, res) => res.send('Api Running'));
const PORT = process.env.PORT || 5000;
app.listen(PORT, () => console.log(`Server started on Port ${PORT}`));
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment