All Projects → davidnguyen179 → Nextjs Full Demo

davidnguyen179 / Nextjs Full Demo

Demo about integration between examples of next.js and also fix some issues during development

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Nextjs Full Demo

Gulp Pug Starter
Frontend development with pleasure. Pug + SCSS version
Stars: ✭ 228 (+200%)
Mutual labels:  gulp, babel, scss
Gulp Starter Kit
A simple Gulp 4 Starter Kit for modern web development.
Stars: ✭ 134 (+76.32%)
Mutual labels:  gulp, babel, scss
sample-ui-react
Material-UI+ React.js + Redux [ Pug / Scss / Babel ]
Stars: ✭ 15 (-80.26%)
Mutual labels:  gulp, babel, material-ui
Glup
Some of the gulp tutorial -《gulp笔记》
Stars: ✭ 136 (+78.95%)
Mutual labels:  gulp, babel, scss
Gulp Scss Starter
Frontend development with pleasure. SCSS version
Stars: ✭ 339 (+346.05%)
Mutual labels:  gulp, babel, scss
Pizzaql
🍕 Modern OSS Order Management System for Pizza Restaurants
Stars: ✭ 631 (+730.26%)
Mutual labels:  babel, nextjs
Sassy Starter
🎉 Sassy starter - HTML / SCSS (SMACSS)
Stars: ✭ 740 (+873.68%)
Mutual labels:  gulp, scss
Next Boilerplate
A well-structured production ready Next.js boilerplate with Typescript, Redux, Jest, Enzyme, Express.js, Sass, Css, EnvConfig, Fetch, Reverse Proxy, Bundle Analyzer and Built-in Project CLI. https://pankod.github.io/next-boilerplate/
Stars: ✭ 936 (+1131.58%)
Mutual labels:  babel, nextjs
Electra
A desktop application for test account managment
Stars: ✭ 32 (-57.89%)
Mutual labels:  gulp, material-ui
Purpleadmin Free Admin Template
Purple Admin is one of the most stylish Bootstrap admin dashboard you can get hands on. With its beautifully crafted captivating design and well-structured code.
Stars: ✭ 473 (+522.37%)
Mutual labels:  gulp, material-ui
Gulp Frontnote
スタイルガイドジェネレーターFrontNoteのGulpプラグイン
Stars: ✭ 7 (-90.79%)
Mutual labels:  gulp, scss
Nestpress
A production ready personal blogging system on top of NestJS and NEXT.js
Stars: ✭ 38 (-50%)
Mutual labels:  nextjs, material-ui
Vue Chat
📲 A web chat application. Vue + node(koa2) + Mysql + socket.io
Stars: ✭ 617 (+711.84%)
Mutual labels:  gulp, scss
Nth Start Project
Startkit for HTML / CSS / JS pages layout.
Stars: ✭ 578 (+660.53%)
Mutual labels:  gulp, scss
Wordpress Starter
📦 A starter template for WordPress websites
Stars: ✭ 26 (-65.79%)
Mutual labels:  gulp, babel
Long Haul
A minimal, type-focused Jekyll theme.
Stars: ✭ 524 (+589.47%)
Mutual labels:  gulp, scss
Web3studio Sojourn
A React Native DevKit with code for a Web3 Decentralized Data Storage Pattern.
Stars: ✭ 29 (-61.84%)
Mutual labels:  nextjs, material-ui
Nextjs Material Dashboard
NextJS version of Material Dashboard React
Stars: ✭ 50 (-34.21%)
Mutual labels:  nextjs, material-ui
Tris Webpack Boilerplate
A Webpack boilerplate for static websites that has all the necessary modern tools and optimizations built-in. Score a perfect 10/10 on performance.
Stars: ✭ 1,016 (+1236.84%)
Mutual labels:  babel, scss
Generator Dhboilerplate
Boilerplate made by David Hellmann
Stars: ✭ 54 (-28.95%)
Mutual labels:  gulp, scss

Fetching data with Material UI & Dynamic Import

This example allow you to fetch data from api get news from techcrunch using api service: https://newsapi.org/.

In this example, I use:

  • Babel config
  • PostCSS config
  • Webpack config: to add plugins allow develop CSS using SCSS
  • Redux
  • Material UI
  • Custom Document
  • Custom Server
  • Next Routes
  • Data fetching
  • Gulp
  • Dynamic import

Basically, Next.JS allow you to use style-jsx package to develop CSS, but in the production mode, html is not minified. I resolved it using gulp allow you to bundle final all scss into css & with postCSS to auto prefix the final css.

You can visit here to know detail about problems that I met during development:

https://medium.com/@nndung179/next-js-at-chotot-ca9c1520f436

Prefix Domain

go to utils/constants change prefix name whatever you want. In this demo, I choose /news. Then just browse to:

http://localhost:3000/news

Note: Currently, there is no offical way to configure prefix in next.js. This demo worked well in next.js 3 beta version.

development

require

npm i nodemon -g

npm

npm i
npm start

yarn

yarn install
yarn start

production

npm

npm i
npm run production

yarn

yarn install
yarn run production

Reference

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].