Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nuxt-community/express-template
Starter template for Nuxt 2 with Express.
https://github.com/nuxt-community/express-template
express expressjs nuxt nuxt-template vue
Last synced: 3 days ago
JSON representation
Starter template for Nuxt 2 with Express.
- Host: GitHub
- URL: https://github.com/nuxt-community/express-template
- Owner: nuxt-community
- Created: 2017-01-24T09:03:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-12-02T13:30:58.000Z (20 days ago)
- Last Synced: 2024-12-12T09:04:01.989Z (10 days ago)
- Topics: express, expressjs, nuxt, nuxt-template, vue
- Language: Vue
- Homepage: https://codesandbox.io/s/github/nuxt-community/express-template
- Size: 160 KB
- Stars: 1,247
- Watchers: 21
- Forks: 239
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-boilerplate - Github
- awesome-boilerplate - Github
README
# Nuxt 2 with Express
> [ExpressJS](http://expressjs.com/) + [Nuxt 2](https://v2.nuxt.com) = :zap:
Live Demo: [https://codesandbox.io/s/github/nuxt-community/express-template](https://codesandbox.io/s/github/nuxt-community/express-template)
## Nuxt 3
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)).
This is why this template won't be migrated to Nuxt 3.
## Installation
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:
One you cloned your repository, install the dependencies with:
```bash
yarn install # or npm install
```## ExpressJS Changes
- There is a `api` directory with the root of your `api` server.
- The `routes` directory is called `api/routes`.## Commands
| Command | Description |
|---------|-------------|
| npm run dev | Start ExpressJS server in development with Nuxt.js in dev mode (hot reloading). Listen on [http://localhost:3000](http://localhost:3000). |
| npm run build | Build the nuxt.js web application for production. |
| npm start | Start ExpressJS server in production. |## Examples
- [Handling Protected SSR Routes](https://github.com/nuxt/express/blob/master/protected-ssr-api.md)
## Documentation
- [ExpressJS](http://expressjs.com/en/guide/routing.html)
- [Nuxt.js](https://nuxtjs.org/guide/)
- [Vue.js](http://vuejs.org/guide/)## Licenses
- [ExpressJS license](https://github.com/expressjs/express/blob/master/LICENSE)
- [NuxtJS license](https://github.com/nuxt/nuxt.js/blob/master/LICENSE.md)
- [VueJS license](https://github.com/vuejs/vue/blob/master/LICENSE)