A barebones starter template with Porpoise and ExpressJS
Click on use this template.
npx degit https://github.com/porpoise/porpoise-fullstack
npm run dev
(Start auto-reloading server).
npm run watch
(Build client bundle on change).
npm run start
(Build client and start server).
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.
Literally nothing is forced, preset, or hidden. Everything is exposed.
- Mess with webpack:
webpack.config.js
- Hate the server setup?
server.js
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).