![]() ![]() Background: HD188553, NASA/JPL-Caltechįollowing the parameterized route the guardian. The following code sets up a simple HTTP server with Express.js.Ĭonsole.log(`Server started at port $`) It will be created after the author and license fields are over. pug, you would likely write something like this: - const mappings require./cssModules. json file in the same folder, and you want to require. The pug file report.pug is not rendered to the browser. ![]() ![]() This means that application is behaving correctly till this line - console.log( fData ) in index.js and here lies the problem. If you want some other name, like app.js, you can do the naming here. Passing require to pug templates has one issue while requiring local files. Server receives request and prepares data for use in pug template file, which when console logged, is displayed in console. Now there is one field called entry point where you can give a name to your main file (. Inside /node-project, we will create the package.json file for our Node.js + Express.js application typing the below command.įill the name, version, description and other such fields with your own values. Create a working directory for your project, say, /node-project. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |