GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for LocalLibrary base template.

Developer library 6

Express Tutorial Part 7: Deploying to production

sing a hosting site, a brief overview of what you need to do in order to get your Express app ready for production, and a working example of how to install the LocalLibrary website onto the [Railway](https://railway.com/) cloud hosting service. ## What is a production environment? The production environment is the environment provided by the server computer where you will run your website for external consumption.

Express Tutorial Part 4: Routes and controllers

data In this tutorial we'll set up routes (URL handling code) with "dummy" handler functions for all the resource endpoints that we'll eventually need in the [LocalLibrary](/docs/Learn_web_development/Extensions/Server-side/Express_Nodejs/Tutorial_local_library_website) website. On completion we'll have a modular structure for our route handling code, which we can extend with real handler functions in the following

Express Tutorial Part 5: Displaying library data

Learn_web_development/Extensions/Server-side/Express_Nodejs/forms We're now ready to add the pages that display the [LocalLibrary](/docs/Learn_web_development/Extensions/Server-side/Express_Nodejs/Tutorial_local_library_website) website books and other data. The pages will include a home page that shows how many records we have of each model type and list and detail pages for all of our models. Along the way, we'll

Template primer

you may get an unhelpful error code). Once you have your templates in place, however, they are very easy to read and maintain. ## Template configuration The _LocalLibrary_ was configured to use [Pug](https://pugjs.org/api/getting-started.html) when we [created the skeleton website](/docs/Learn_web_development/Extensions/Server-side/Express_Nodejs/skeleton_website). You should see the pug module included as a depend

LocalLibrary base template

Learn_web_development/Extensions/Server-side/Express_Nodejs/Displaying_data/Home_page Now that we understand how to extend templates using Pug, let's start by creating a base template for the project. This will have a sidebar with links for the pages we hope to create across the tutorial articles (e.g., to display and create books, genres, authors, etc.) and a main content area that we'll override in each of our ind

Home page

he chain. ## View Open **views/index.pug** and replace its content with the text below. ```pug extends layout block content h1= title p Welcome to #[em LocalLibrary], a very basic Express website developed as a tutorial example on the Mozilla Developer Network. h2 Dynamic content p The library has the following record counts: ul li #[strong Books:] !{book_count} li #[strong Copies:] !{book_in

JSON results · Services directory