#sails-postgres-crud
A SailsJS web application that demonstrates basic CRUD operations on a Postgtres database using Waterline ORM. It illustrates the following features/best practices.
- A nice bootstrap based UI.
- EJS - Embedded Javascript as the templating engine.
- A useful, generic layout, so that the web pages are clean.
- REST model route configuration.
- Persisting data into a Postgres DB, using Waterline ORM.
- Domain Driven Design around Domain Models
- Nice usage of Java script Promises.
- Usage of asynchronous bootstrap functions.
- Install NodeJS & SailsJS (if not already)
- Clone this project from GIT - git clone https://github.com/sameerean/sails-postgres-crud.git
- Create/prepare a Postgrest Database for connecting from the app
- Modify [project-root]/config/connections.js, update the DB properties.
- From project-root, execute - sails lift.
- Make sure there is no error message, or fix them ;)
- Go to http://localhost:1337/

