Skip to content

sameerean/sails-postgres-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Setup

  1. Install NodeJS & SailsJS (if not already)
  2. Clone this project from GIT - git clone https://github.com/sameerean/sails-postgres-crud.git

Try it out

  1. Create/prepare a Postgrest Database for connecting from the app
  2. Modify [project-root]/config/connections.js, update the DB properties.
  3. From project-root, execute - sails lift.
  4. Make sure there is no error message, or fix them ;)
  5. Go to http://localhost:1337/

Screenshots

#####List of Users List of Users #####User Edit Screen User Edit Screen

About

A SailsJS web application that demonstrates basic CRUD operations on a Postgresql database using Waterline ORM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors