Code Monkey home page Code Monkey logo

Comments (5)

kamilmysliwiec avatar kamilmysliwiec commented on May 2, 2024

I understand that you probably want to render the index.html so it looks more appealing

Exactly.

Maybe the app service returns a static array of benefits of NestJS which then get rendered by the index.html?

In this case, we would have to add some template engine whereas I tried to keep this sample as simple as possible Any ideas what could we do instead? I agree that it definitely doesn't show nest benefits.

from nestjs.com.

BrunnerLivio avatar BrunnerLivio commented on May 2, 2024

I tried to keep this sample as simple as possible

That does totally make sense. Unfortunately to me it seems like there is no other good way other than using a template rendering engine.. Maybe adding this to the example would not be too bad of an idea, because as a newcomer you can directly see that NestJS is using express as underlying HTTP client. Seeing that you can easily modify the express instance was also one of the points which made me jump onto NestJS back then :)

from nestjs.com.

kamilmysliwiec avatar kamilmysliwiec commented on May 2, 2024

I updated the example. Would you mind to take a look? :)

from nestjs.com.

BrunnerLivio avatar BrunnerLivio commented on May 2, 2024

Looking real good, clean, simple and usable.

One teeny tiny thing; seems like an uneeded import slipped in main.ts: import { join } from 'path'; :)

from nestjs.com.

kamilmysliwiec avatar kamilmysliwiec commented on May 2, 2024

Fixed!

from nestjs.com.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.