Skip to content

troysandal/nextjs-typescript-express-boilerplate

Repository files navigation

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

A next.js boilerplate app with Typescript and an Express API server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published