Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hung-phan/micro-nextjs
Next.js and Typescript template
https://github.com/hung-phan/micro-nextjs
micro nextjs react typescript universal
Last synced: about 10 hours ago
JSON representation
Next.js and Typescript template
- Host: GitHub
- URL: https://github.com/hung-phan/micro-nextjs
- Owner: hung-phan
- Created: 2018-06-24T06:54:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T10:22:08.000Z (almost 2 years ago)
- Last Synced: 2024-04-10T20:39:00.011Z (7 months ago)
- Topics: micro, nextjs, react, typescript, universal
- Language: TypeScript
- Homepage:
- Size: 3.64 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Micro-next.js
[![build status](https://travis-ci.org/hung-phan/micro-nextjs.svg?branch=master)](http://travis-ci.org/hung-phan/micro-nextjs/)
## Previous project
- [koa-react-isomorphic](https://github.com/hung-phan/koa-react-isomorphic)## Requirement
- Install [redux-devtools-extension](https://github.com/zalmoxisus/redux-devtools-extension) to have better experience when developing.### Idea to structure redux application
For now, the best way is to place all logic in the same place with components to make it less painful when scaling the application.
Current structure is the combination of ideas from [organizing-redux](http://jaysoo.ca/2016/02/28/organizing-redux-application/) and
[ducks-modular-redux](https://github.com/erikras/ducks-modular-redux). Briefly, I will have our reducer, action-types, and actions
in the same place with featured components.## Development
```bash
$ npm run dev
```## Test
```bash
$ npm test
```## Production
### Start production server
```bash
$ npm run build
$ npm start
```Access `http://localhost:3000` to see the application
## QA
Feel free to open an issue on the repo.