All Projects → embbnux → Kails

embbnux / Kails

Licence: mit
A Web App like Ruby on Rails with Koa2, Webpack and Postgres

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Kails

Blog
梁少峰的个人博客
Stars: ✭ 4,602 (+798.83%)
Mutual labels:  webpack, blog
Kickoff tailwind
A rapid Rails 6 application template for personal use bundled with Tailwind CSS
Stars: ✭ 287 (-43.95%)
Mutual labels:  webpack, rails
Kit
ReactQL starter kit (use the CLI)
Stars: ✭ 232 (-54.69%)
Mutual labels:  webpack, koa2
Peco
nothing here, move on..
Stars: ✭ 213 (-58.4%)
Mutual labels:  webpack, blog
Google Translate
翻译工具 支持网页翻译和文本翻译
Stars: ✭ 356 (-30.47%)
Mutual labels:  webpack, koa2
Ex Shop
Digital goods shop & blog created using Elixir (Phoenix framework)
Stars: ✭ 214 (-58.2%)
Mutual labels:  webpack, blog
Myblog
vue + node 实现的一个博客系统
Stars: ✭ 285 (-44.34%)
Mutual labels:  webpack, blog
Koa Web Kit
🚀A Modern, Production-Ready, and Full-Stack Node Web Framework with React
Stars: ✭ 199 (-61.13%)
Mutual labels:  webpack, koa2
Blog React
基于typescript koa2 react的个人博客
Stars: ✭ 314 (-38.67%)
Mutual labels:  blog, koa2
Hyper React
The project has moved to Hyperstack!!
Stars: ✭ 295 (-42.38%)
Mutual labels:  webpack, rails
Vue Blog
🎉 基于vue全家桶 + element-ui 构建的一个后台管理集成解决方案
Stars: ✭ 208 (-59.37%)
Mutual labels:  webpack, blog
Hyperstack
Hyperstack ALPHA https://hyperstack.org
Stars: ✭ 463 (-9.57%)
Mutual labels:  webpack, rails
Docker Web Framework Examples
Example apps that demonstate how to use Docker with your favorite web frameworks.
Stars: ✭ 204 (-60.16%)
Mutual labels:  webpack, rails
Koa Webpack Middleware
webpack dev&hot middleware for koa2
Stars: ✭ 215 (-58.01%)
Mutual labels:  webpack, koa2
Webpacker React
Webpacker plugin to integrate React in your Rails application
Stars: ✭ 201 (-60.74%)
Mutual labels:  webpack, rails
React webpack rails
Simple and lightweight react-webpack-rails integration.
Stars: ✭ 248 (-51.56%)
Mutual labels:  webpack, rails
Blog
这是一个Blog, 如果喜欢可以订阅,是Watch, 不是 Star 哈。。。
Stars: ✭ 161 (-68.55%)
Mutual labels:  webpack, blog
Limestone
Boilerplate Rails 6 SaaS application with Webpack, Stimulus and Docker integration.
Stars: ✭ 191 (-62.7%)
Mutual labels:  webpack, rails
Blog
Front-end tech thoughts and share-ppt
Stars: ✭ 288 (-43.75%)
Mutual labels:  webpack, koa2
Koa Webpack
Development and Hot Reload Middleware for Koa2
Stars: ✭ 429 (-16.21%)
Mutual labels:  webpack, koa2

Kails

Build Status

A Web App like Ruby on Rails with Koa2, Webpack and Postgres.

This project is like Ruby on Rails Project:

  • MVC
  • Database (postgres), ORM(sequelize)
  • migration(sequelize-cli)
  • assets compile(webpack)
  • Session
  • Password with bcrypt
  • Testing (mocha)
  • Lint (eslint)
  • middlewares
  • console
  • server side render with react
  • flash message

Requirements

  • node ^8.0.0
  • npm ^5.0.0

Features

  • User system
  • Post article with markdown editor
  • Hacker news middlelayer

Structure

├── app
│   ├── assets
│   │   ├── images
│   │   ├── javascripts
│   │   └── stylesheets
│   ├── controllers
│   ├── helpers
│   ├── models
│   ├── routes
│   ├── services
│   ├── views
│   └── index.js
├── config
│   ├── config.js
│   └── webpack
│       ├── base.js
│       ├── development.js
│       └── production.js
├── db
│   └── migrations
├── index.js
├── package.json
├── public
└── test

Build development environment on localhost

  1. install nodejs
  2. install redis and postgres
  3. create postgres database: for development { database: 'kails_dev', owner: 'kails_dev', password: 'kails_dev' } for test { database: 'kails_test', owner: 'kails_tester', password: 'kails_tester' }
  4. clone and start this project
git clone https://github.com/embbnux/kails.git
npm install
npm run db:migrate
npm run start
  1. Visit http://localhost:3000/
  2. console
$ npm run console
> models.User.create({ name: 'test', email: '[email protected]', password: '12345678', passwordConfirmation: '12345678' }).then(function(user) { console.log(user) })
> models.User.findOne({ where: { email: '[email protected]' } }).then(function(user) { console.log(user) })

Deploy on production

How to Deploy Kails

How to Deploy Kails With Docker

Commands with npm

# migrate database
npm run db:migrate
NODE_ENV=test npm run db:migrate
# run for development. it start app and webpack dev server
npm start
# run the app
npm run app
# run the lint
npm run lint
# run test
npm test
# deploy
npm run build
npm run assets_compile
NODE_ENV=production npm run db:migrate
npm run pm2
# console
npm run console

Author

Blog

License

MIT

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].