Coder Social home page Coder Social logo

nestjs / nestjs.com Goto Github PK

View Code? Open in Web Editor NEW
129.0 129.0 17.0 19.89 MB

The official website https://nestjs.com ๐Ÿ†

Home Page: https://nestjs.com

License: MIT License

HTML 71.01% CSS 24.47% JavaScript 4.53%
javascript nestjs nodejs nodejs-framework website

nestjs.com's People

Contributors

arhell avatar brunnerlivio avatar dependabot[bot] avatar flipfloop avatar hellokvn avatar kamilmysliwiec avatar maciejsikorski avatar markpieszak avatar micalevisk avatar nartc avatar pmer avatar renovate-bot avatar renovate[bot] avatar tony133 avatar tortuvshin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nestjs.com's Issues

StackBlitz src/app.controller.spec.ts `getHello` unit test failing

The landing page of nestjs.com website has a live preview running in StackBlitz.

The src/app.controller.spec.ts unit test is failing:
https://stackblitz.com/edit/nestjs-typescript-starter-pcysqn?file=src%2Fapp.controller.spec.ts

Currently:

describe('getHello', () => {
    it('should return "Hello World!"', () => {
      const appController = app.get<AppController>(AppController);
       // NOTE: Attempting to access the getHello() service method directly (does not exist on appController).
       expect(appController.getHello()).toBe('Hello World!');
    });
});

Suggested change:

describe('getHello', () => {
    it('should return "Hello World!"', () => {
      const appController = app.get<AppController>(AppController);
      // NOTE: Change the expect to check for valid object response using render() method
      expect(appController.render()).toEqual({ message: 'Hello World!' });
    });
});

Codesandbox example does not use the AppService

The Codesandbox.io example on the start page is kinda questionable. The app.controller.ts does inject the AppService, but does not call anything from it, making it unneeded.

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get()
  render(@Res() res: Response) {
    res.sendFile(`index.html`, { root: __dirname + '/..' });
  }
}

I understand that you probably want to render the index.html so it looks more appealing. But maybe we should consider an example which actually uses a service, so the user better understands the benefits of NestJS? Maybe the app service returns a static array of benefits of NestJS which then get rendered by the index.html?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • copyfiles 2.4.1
  • parcel-plugin-browserconfig 1.0.5
  • parcel-bundler 1.12.5
nvm
.nvmrc
  • node 18.19.0

  • Check this box to trigger a request for Renovate to run again on this repository

Wrong redisStore cache documentation

In the docs, it says that a redis store on the CacheModule must be set up like this:

@Module({
  imports: [
    CacheModule.register<RedisClientOptions>({
      store: redisStore,

      // Store-specific configuration:
      socket: {
        host: 'localhost',
        port: 6379,
      },
      isGlobal: true
    }),
  ],
  controllers: [AppController],
})

but when the service is manually injected:

constructor(@Inject(CACHE_MANAGER) private cacheManager: Cache) {}

it gives an instance of the In Memory Cache

I think this is a documentation issue because when i set up the CacheModule in this way without the socket object:

@Module({
  imports: [
    CacheModule.register({
      store: redisStore,
      host: 'localhost',
      port: 6379,
      isGlobal: true
    }),
  ],
  controllers: [AppController],
})

it works as expected.

This issue was reproduced with this environment:

  • node: 16.14.2
  • @nestjs/core: 8.1.1
  • cache-manager: 3.6.1
  • cache-manager-redis-store: 2.0.0

Your website

When visiting https://www.nestjs.com/ there is an SSL error.

You should either buy a valid cert for the www domain or fix your config to redirect to non www.

Didn't know where else to submit the issue

You're welcome :-)

Nestjs.com landing page styling issue

Bug Report

Sponsors/Partners section is not fully visible

Current behavior

Screen Shot 2020-09-28 at 12 43 06 AM

Expected behavior

All thee sponsors should be visible

Possible Solution

Adding a margin on the container CSS class may solve the problem.

Environment

MacOS Catalin 10.15.3
Chrome Version 85.0.4183.121 (Official Build) (64-bit)

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.