Comments (9)
Hi @cyrus-za. I'm currently working on razzle integration. Both razzle and next.js have the same concept of modify
function for webpack config customization. So, yeah, nextjs integration seems possible
from suicrux.
@Metnew I know but https://github.com/Metnew/suicrux/tree/master/src/server
:)
from suicrux.
It'd be cool to add example
dir, like in Next/Razzle with simple examples of integration with different libs, but it makes sense only after working modify
function. @malixsys
from suicrux.
@cyrus-za
I've recently made https://github.com/Metnew/next-semantic-ui-react, that could be interesting for you.
It's not a full clone of this boilerplate, just a SUIR + Next.js integration.
Fully migrate to next.js is almost impossible, too much config overwriting.
from suicrux.
Thanks @Metnew I look forward to see what you do with this package.
I am currently using RAN (https://github.com/Sly777/ran) and would love to get all the goodies that both RAN and SUICRUX offer.
from suicrux.
I was researching Razzle last few weeks and finally have some good and bad news:
- Good news: some Razzle internals(node-externals handling, dev mode) are integrated into boilerplate.
- Bad news: Razzle lacks plugin system. No concrete info about this "plugin system" exists in the repo.
More info about v3.0.0 release: https://github.com/Metnew/suicrux/releases/tag/v3.0.1
Next.js integration now is the primary task.
Both Razzle and Next have same Webpack re-configuration mechanism - modify
function.
So, current razzle.config.js
will be transformed to next.config.js
.
The best case: Suicrux's Webpack config is encapsulated to modify
function, which is compatible with Next, Razzle, and other libs.
from suicrux.
Iām using NestJS with NextJS: good fit... Maybe worth investigating?
from suicrux.
@malixsys thanks for the recommendation, I'll surely take a look, it looks interesting.
The only issue - it's a backend framework :)
from suicrux.
Serves nextJS
perfectly and allows adding an API easily...
// server.js
import { NestFactory } from '@nestjs/core';
import { ApplicationModule } from './app.module';
import { GlobalExceptionFilter } from './app.exceptions';
import * as express from 'express';
import * as nextjs from 'next';
import * as helmet from 'helmet';
import * as cookieParser from 'cookie-parser';
import * as bodyParser from 'body-parser';
declare const process;
const port = process.env.PORT ? Number(process.env.PORT) : 3000;
const dev = process.env.NODE_ENV !== 'production';
const next = nextjs({ dev });
const handle = next.getRequestHandler();
next.prepare()
.then(async() => {
const server = express();
const app = await NestFactory.create(ApplicationModule, server);
app.useGlobalFilters(new GlobalExceptionFilter());
app.setGlobalPrefix('api');
app.use(helmet());
app.use(cookieParser());
app.use(bodyParser.json({ limit: '50mb' }));
app.use(bodyParser.urlencoded({ extended: false }));
await app.init();
server.get('*', (req, res) => handle(req, res));
await app.listen(port);
console.log(`> Ready on http://localhost:${port}`);
});
from suicrux.
Related Issues (20)
- Stuck at Login `auth` screen HOT 2
- Basic Setup ? HOT 1
- The script has an unsupported MIME type ('text/html'). HOT 2
- Source Map Issue HOT 2
- sidebaritem titles are shown on header when page is refreshed HOT 6
- Deploying application with apache, frontend does not show... HOT 5
- Who's using Suicrux? HOT 9
- Roadmap [WIP]
- Eager to see Redux-Saga in this project HOT 1
- flow-typed install fails HOT 1
- Error Can't resolve 'react-tree-walker', while running "npm run dev" from master branch HOT 2
- Version 10 of node.js has been released
- static only? HOT 1
- Unable to debug in VSCode editor HOT 1
- An in-range update of webpack-hot-middleware is breaking the build šØ HOT 3
- An in-range update of babel-plugin-styled-components is breaking the build šØ HOT 1
- An in-range update of react is breaking the build šØ HOT 31
- An in-range update of enzyme is breaking the build šØ
- An in-range update of eslint-plugin-react is breaking the build šØ HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from suicrux.