Making a task manager program with Node and Express.
Express requiere Node.js version ^14.18+
$ Node.js hhttps://nodejs.org/en/download
$ cd yourproject
$ npm init
$ npm install express --save
$ npm run start- After
npm run startopen browser http://localhost:5000/ - The parent file, app.js, is main document.
- To close use Ctrl+C.
const express = require('express')
const app = express()
const tasks = require('./routes/task')
// middleware
app.use(express.json())
//routes
app.get('/hello', (req, res) => {
res.send('Task Manager App')
})
app.use('/api/v1/tasks', tasks)
const port = 5000
app.listen(port, () => {
console.log(`Listenig on port ${port}`)
})
- Display a list of task.
- Using the buttoms to add, delete and querry between task.
This project is licensed under the MIT License.