Skip to content
/ porpoise-fullstack Public template

A barebones full-stack app template made with Porpoise and Express

Notifications You must be signed in to change notification settings

porpoise/porpoise-fullstack

Repository files navigation

porpoise-fullstack

A barebones starter template with Porpoise and ExpressJS

Get started via GitHub:

Click on use this template.

Get started on your machine:

npx degit https://github.com/porpoise/porpoise-fullstack

Make stuff run:

DEV

npm run dev (Start auto-reloading server). npm run watch (Build client bundle on change).

PROD

npm run start (Build client and start server).

What's /api/index.js?

This allows you to specify API routes, accessible at localhost:3000/api/ROUTE. It's essentially an express.Router instance. Use the example route already in there for more help.

Changing things:

Literally nothing is forced, preset, or hidden. Everything is exposed.

  • Mess with webpack: webpack.config.js
  • Hate the server setup? server.js

TypeScript?

A TypeScript version is coming very soon.

For now though:

  • npm i typescript ts-node ts-loader
  • (ts-node for the server)
  • Mess with webpack.config.js and the NPM scripts.
  • To auto-reload the server, try ts-node-dev (here).

About

A barebones full-stack app template made with Porpoise and Express

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published