whenubelieve / nextjs-express-boilerplate-typescript

While evaluating next.js for building apps I wanted a starting point that included an Express server for the API and Typescript as the primary language instead of Javascript. This project is the boilerplate for that app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next.js + Typescript + Express Server

While evaluating next.js for building apps I wanted a starting point that included an Express server for the API and Typescript as the primary language instead of Javascript. This project is the boilerplate for that app.

You can deploy this app either to Zeit via the now command or to Heroku.

Features

  • next.js
  • Typescript
  • Express API Server
  • Static file serving
  • Mocha Tests

Running

Dev Server

npm i
npm run dev

Production Server

npm i
npm run build
npm run start

Notes

  • We might need to use this .babelrc though I swear I read it's been fixed and our current
  • Great write up on creating babel7/typescript app
  • To fix TS2339:Property 'jsx' does not exist on type 'DetailedHTMLProps<StyleHTMLAttributes, HTMLStyleElement>'. From npm i --save-dev @types/styled-jsx
  • SASS Support - Might want to use it vs styled-jsx

MIT License

About

While evaluating next.js for building apps I wanted a starting point that included an Express server for the API and Typescript as the primary language instead of Javascript. This project is the boilerplate for that app.

License:MIT License


Languages

Language:TypeScript 96.9%Language:JavaScript 3.1%