1.0.11 • Published 3 years ago

restful-generic-entity v1.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
3 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

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago