1.0.11 • Published 10 months ago

restful-generic-entity v1.0.11

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

10 months ago

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago