Skip to content

dolcalmi/coquito-express

Repository files navigation

Coquito Express

Just another ES6 expressjs + bookshelf boilerplate

Features

  • Initially just for APIs but you can add 'views' easily
  • ES6 support via babel
  • Vagrant with PostgreSQL: just for test purpose, if you have other database supported by Bookshelf please change the Database Configuration
  • Useful middlewares
  • Ember like structure. Just begin with app/app.js
  • Independent Business Core from API Layer
  • i18n support (english and spanish)
  • API with:
    • Security by Passport and passport-jwt
    • Preconfigured routes signup, activate account, login, change password, forgot password, reset password and a demo path for 'users'
    • Emails not included but you can add them here
  • Preconfigured npm commands:
    • db:create [migration file name]: create a new db migration file
    • db:migrate : run pending migrations
    • db:rollback : rollback the last migration
    • db:create:seed [seed file name]: create a seed file
    • db:seed : run the seeds
  • Ember client

Prerequisites

You will need the following things properly installed on your computer.

Installation / Initial setup

  • git clone git@github.com:dolcalmi/coquito-express.git
  • change into the new directory
  • rm -rf .git && git init && npm init (optional, make it yours)
  • npm install
  • vagrant up (may take a while)
  • npm run db:migrate
  • npm run db:seed (create an active user john.doe@gmail.com with password 123456)

Running / Development

Deploying

  • Update your database connection in config/database.js
  • npm run build (compiles with babel and move all to dist folder)
  • deploy dist folder and run NODE_ENV=production node dist/bin/www.js or
  • NODE_ENV=production npm run serve

This project code and structure were inspired by

About

Just another ES6 expressjs + bookshelf boilerplate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published