1.1.4 • Published 9 months ago

@ndsk/ndsk v1.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

Read the documentation here https://ndsk.dev

Introduction

ndsk (node ​​stack) is a next-generation full-stack framework for JavaScript developers. It is designed to be very simple, allowing you to create secure, high-performance, high-quality programs with minimal code. It has powerful routing, flexible layout modes, fast compilation speed, extensible plug-ins and middleware, and supports server-side rendering (SSR), client-side rendering (CSR), static rendering (SSG), and hybrid mode SSCR. It almost makes up for all the shortcomings of other frameworks, all for the purpose of improving development efficiency.

Main advantages:

  • Safe, very simple design, powerful, ready to use, no additional configuration required
  • Supports various rendering modes such as server-side rendering (SSR), CSR, SSG, SSCR, etc., the first screen rendering speed is super fast, very friendly to SEO
  • Automatically optimize the package size, the compilation speed is super fast, about 10-100 times that of other frameworks
  • Support server-side hot update, no need to restart the server with tools such as nodemon every time the code is modified
  • Support real-time page reload, modify the front-end components and back-end routes to automatically refresh the page
  • Support detailed error stack tracking function in development mode
  • Super fast startup speed, it dynamically compiles according to page requests, without the need to compile all pages every time
  • Automatic compilation, support TypeScript\ES5\ES6+
  • Powerful routing function, support dynamic routing
  • Compared with other frameworks, it supports more flexible layout modes
  • Use react renderToPipeableStream to render pages, support lazy, Suspense asynchronous loading
  • It has built-in major modules such as mongodb, no additional configuration is required, and it supports front-end, back-end, and full-stack development.

ndsk is the fastest framework currently

Comparison under Ubuntu:

frame         start up(Development)Compile(Bundle)First screen loading(DOMContentLoaded)
Ndsk~ 0.4s~ 0.4s~ 0.008s
Remix~ 0.7s~ 1.7s~ 0.010s
Next~ 2.2s~ 8s~ 0.008s

-

Start the development environment, compile and start

$ npm run dev
> My App@1.0.0 dev
> ndsk

> Startup time:198ms Ready on http://localhost:3000

$ npm run build
> My App@1.0.0 build
> ndsk build

✨ /home/work/ndsk_example/src/pages/index.js 139.36KB
✨ compiled 1 file in : 377ms

$ npm run start
> My App@1.0.0 start
> ndsk start

> Startup time:187ms Ready on http://localhost:3000

Start installation

Create a project directory and enter

$ mkdir my-nodestack-app
$ cd my-nodestack-app 

\ Next, start creating the project and installing the necessary packages. If prompted, just press Enter

$ npm create nodestack
$ npm i

\ Now that you have completed the installation, you should see the following directory structure

my-nodestack-app
├── src
│   ├── pages
│   │   └── index.js
│   │   └── style.scss
├── ndsk.config.js
└── package.json

\ Open the package.json file, you can see the following content in the script

{
    "scripts": {
        "dev": "ndsk",
        "build": "ndsk build",
        "start": "ndsk start"
    }
}

\ These scripts correspond to different stages of the program:

  • dev: Run npm run dev to start nodestack in development mode
  • build: Run npm run build to start building the project
  • start: Run npm run start to run the built project in production environment

\ Now enter the following code in the terminal to start our first project

$ npm run dev

\ You can see the following log output

> My App@1.0.0 dev
> ndsk

> Startup time:450ms Ready on http://localhost:3000

Get Start

1.1.4

9 months ago

1.1.3

9 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.1.2

9 months ago

1.0.99

9 months ago

1.0.98

9 months ago

1.0.97

9 months ago

1.0.96

9 months ago

1.0.95

9 months ago

1.0.94

9 months ago

1.0.79

10 months ago

1.0.78

10 months ago

1.0.80

10 months ago

1.0.84

10 months ago

1.0.83

10 months ago

1.0.82

10 months ago

1.0.81

10 months ago

1.0.88

10 months ago

1.0.87

10 months ago

1.0.86

10 months ago

1.0.85

10 months ago

1.0.89

10 months ago

1.0.91

10 months ago

1.0.90

10 months ago

1.0.93

9 months ago

1.0.92

9 months ago

1.0.77

10 months ago

1.0.76

10 months ago

1.0.75

10 months ago

1.0.74

10 months ago

1.0.73

10 months ago

1.0.72

10 months ago

1.0.66

11 months ago

1.0.65

11 months ago

1.0.64

11 months ago

1.0.69

10 months ago

1.0.68

10 months ago

1.0.67

10 months ago

1.0.71

10 months ago

1.0.70

10 months ago

1.0.62

11 months ago

1.0.61

11 months ago

1.0.60

11 months ago

1.0.63

11 months ago

1.0.59

11 months ago

1.0.58

11 months ago

1.0.57

11 months ago

1.0.44

11 months ago

1.0.48

11 months ago

1.0.47

11 months ago

1.0.46

11 months ago

1.0.45

11 months ago

1.0.49

11 months ago

1.0.51

11 months ago

1.0.50

11 months ago

1.0.55

11 months ago

1.0.54

11 months ago

1.0.53

11 months ago

1.0.52

11 months ago

1.0.56

11 months ago

1.0.43

11 months ago

1.0.42

11 months ago

1.0.41

11 months ago

1.0.40

11 months ago

1.0.39

12 months ago

1.0.38

12 months ago

1.0.37

12 months ago

1.0.36

12 months ago

1.0.35

12 months ago

1.0.34

12 months ago

1.0.33

12 months ago

1.0.32

12 months ago

1.0.31

12 months ago

1.0.30

12 months ago

1.0.29

12 months ago

1.0.28

12 months ago

1.0.27

12 months ago

1.0.26

12 months ago

1.0.25

12 months ago

1.0.24

12 months ago

1.0.23

12 months ago

1.0.22

12 months ago

1.0.21

12 months ago

1.0.20

12 months ago

1.0.19

12 months ago

1.0.18

12 months ago

1.0.17

12 months ago

1.0.16

12 months ago

1.0.15

12 months ago

1.0.14

12 months ago

1.0.13

12 months ago

1.0.12

12 months ago

1.0.11

12 months ago

1.0.10

12 months ago

1.0.9

12 months ago

1.0.8

12 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago