39 |
40 |
41 |
51 |
52 |
92 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Nuxt 2 with Express
2 |
3 | > [ExpressJS](http://expressjs.com/) + [Nuxt 2](https://v2.nuxt.com) = :zap:
4 |
5 | Live Demo: [https://codesandbox.io/s/github/nuxt-community/express-template](https://codesandbox.io/s/github/nuxt-community/express-template)
6 |
7 | ## Nuxt 3
8 |
9 | Nuxt 3 is powered by [unjs/h3](https://github.com/unjs/h3) which has a compatible API with Express and is much faster with the ability to run in Workers ([read more about it](https://nuxt.com/blog/nuxt-on-the-edge)).
10 |
11 | This is why this template won't be migrated to Nuxt 3.
12 |
13 | ## Installation
14 |
15 | This is a template project, click on the green button "Use this template" at the top of this page and get started with GitHub :sparkles:
16 |
17 | One you cloned your repository, install the dependencies with:
18 |
19 | ```bash
20 | yarn install # or npm install
21 | ```
22 |
23 | ## ExpressJS Changes
24 |
25 | - There is a `api` directory with the root of your `api` server.
26 | - The `routes` directory is called `api/routes`.
27 |
28 | ## Commands
29 |
30 | | Command | Description |
31 | |---------|-------------|
32 | | npm run dev | Start ExpressJS server in development with Nuxt.js in dev mode (hot reloading). Listen on [http://localhost:3000](http://localhost:3000). |
33 | | npm run build | Build the nuxt.js web application for production. |
34 | | npm start | Start ExpressJS server in production. |
35 |
36 | ## Examples
37 |
38 | - [Handling Protected SSR Routes](https://github.com/nuxt/express/blob/master/protected-ssr-api.md)
39 |
40 | ## Documentation
41 |
42 | - [ExpressJS](http://expressjs.com/en/guide/routing.html)
43 | - [Nuxt.js](https://nuxtjs.org/guide/)
44 | - [Vue.js](http://vuejs.org/guide/)
45 |
46 | ## Licenses
47 |
48 | - [ExpressJS license](https://github.com/expressjs/express/blob/master/LICENSE)
49 | - [NuxtJS license](https://github.com/nuxt/nuxt.js/blob/master/LICENSE.md)
50 | - [VueJS license](https://github.com/vuejs/vue/blob/master/LICENSE)
51 |
52 |
53 |
--------------------------------------------------------------------------------