Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATION NOTICE

This template is no longer up to date. For an updated template, either as a team or individually, we encourage you to explore our latest template produced by INTDEV. Thank you for your interest in our work!

next-express-emotion

My boilerplate for creating a SSR ready web application with a server.

Primary dependencies

Jimmy, why on earth would I use this?

  • You love server side rendering.
  • You don't need a database, see next-postgres if you do.
  • You like my front-end code and want to see my technical choices in one place.
  • You need meta tag recommendations for SEO.
  • You need something you can extend because you write your own custom components and styles.

Okay, why CSS-in-JS?

  • We use css as a prop so it still feels like writing Vanilla CSS.
  • Auto-prefixing support, unless it is a quirk like hiding scrollbars on Firefox.
  • O(1) class name lookup like Tachyons, except each class gets an unique string generated and you don't have to memorize their names.

Why not [insert another option]?

If you are sincere and researched, I am happy to have a conversation. Please file an issue.

Setup

Make sure NodeJS 10+ is installed. Then run:

npm install
npm run dev

Now view localhost:8080 in your browser.

Deploy To Production

I use these services for all of my work:

Then on the service you can run:

npm run build
npm run start

Scripts

If you need to run node script without running the server, use this example to get started

npm run script example

Questions?

Twitter: @wwwjim.

About

[OUTDATED] Easy way to setup NextJS 12.1.6, React 18.2.0, Express 4.18.1, and @emotion/react 11.9.3 locally.

Topics

Resources

Stars

32 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages