embbnux / Kails
Licence: mit
A Web App like Ruby on Rails with Koa2, Webpack and Postgres
Stars: ✭ 512
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Kails
Kickoff tailwind
A rapid Rails 6 application template for personal use bundled with Tailwind CSS
Stars: ✭ 287 (-43.95%)
Mutual labels: webpack, rails
Ex Shop
Digital goods shop & blog created using Elixir (Phoenix framework)
Stars: ✭ 214 (-58.2%)
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
Hyper React
The project has moved to Hyperstack!!
Stars: ✭ 295 (-42.38%)
Mutual labels: webpack, rails
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
Limestone
Boilerplate Rails 6 SaaS application with Webpack, Stimulus and Docker integration.
Stars: ✭ 191 (-62.7%)
Mutual labels: webpack, rails
Koa Webpack
Development and Hot Reload Middleware for Koa2
Stars: ✭ 429 (-16.21%)
Mutual labels: webpack, koa2
Kails
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
- install nodejs
- install redis and postgres
- 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' }
- clone and start this project
git clone https://github.com/embbnux/kails.git
npm install
npm run db:migrate
npm run start
- Visit http://localhost:3000/
- 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 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
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].