1.0.11 • Published 2 years ago

restful-generic-entity v1.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Steps

1 - Config your env variables

create an .env file with the port variable on the root of the project

2 - Usage example

const nodeRouter = require('./nodeRouter')
const port = process.env.PORT || 3000;

const app = nodeRouter()


app.listen(port)
app.get('/', (req, res) => {
	res.send('hello')
})
app.post('/users', (req, res) => {
	const user = req.body
	res.send(user)
})

still in progress...

Handle the req.params and req.query Finishing the methods put and delete Creating the connection with databases (postgres and mysql)

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago