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
Dev Server
npm i
npm run dev
Production Server
npm i
npm run build
npm run start
- 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