post ( '/test', ( req, res, next ) => ). Here is a starter setup for the application.įirst, require express, morgan, and body-parser:Īpp. Run the following command to set up a new project:Ĭreate a new file named app.js in your project root directory to set up the Express app: To begin, open your command line terminal and create a new project directory: You will create a REST API for this tutorial using Express to test your Joi schemas.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |