Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for sample CRUD app #286

Open
jsandhol opened this issue Apr 7, 2017 · 7 comments
Open

Request for sample CRUD app #286

jsandhol opened this issue Apr 7, 2017 · 7 comments
Labels

Comments

@jsandhol
Copy link

jsandhol commented Apr 7, 2017

Would it be possible to get a working CRUD example for total beginners like myself? With ORM and maybe without (if that's even supported). Just to get the correct/best practise example... Best would be 2 entities with 1:n relation but I'd settle on 1 entity sample too (the Person?). Thanks in any case for the work you're doing!

@anshulbisht06
Copy link

anshulbisht06 commented Apr 7, 2017

@jsandhol Hello mate!
I think I can help you.
I am writing tutorials for trails.js here . I will be posting about models, controllers, policies etc and working processes with basic CRUD examples (table joins and 1:1, 1:n associations), in the future (will take a few days). Details about other trailpack packages (like trailpack-cron & many more) will also be there.
My db framework is SEQUELIZE and web server is HAPI (with Joi validations).

I have created a live project here using trailsjs framework.

@johntom
Copy link

johntom commented Apr 7, 2017

Hi,
Checkout https://github.com/johntom/trails-example-express and https://github.com/johntom/trails-example-aurelia.
The backend show how to populate passoort with user and I also have ( I think some crud stuff going on with todo app )
John

@tjwebb
Copy link
Member

tjwebb commented Apr 12, 2017

We also made this video for Trails v1: https://www.youtube.com/watch?v=AbSp8jqFDAY&t=4s. Everything there should be compatible with v2, and v3 (upcoming release).

@AnthoniG
Copy link

@anshulbisht06 Which server did you use to host this ?
Currently looking around for a server to host my Trails / Sails application.

@anshulbisht06
Copy link

anshulbisht06 commented Apr 26, 2017

@AnthoniG
Well Nginx is the server. It is hosted on an AWS VPC environment with ubuntu as the OS. PM2 is used to keep the server process running.
You can also host in a AWS EC2 instance.

@AnthoniG
Copy link

@anshulbisht06 I thought AWS was expensive to run ?

@anshulbisht06
Copy link

anshulbisht06 commented Apr 26, 2017

@AnthoniG just signup to AWS and choose the free tier instance (ubuntu as OS). It is free for 1 year. And there are many tutorials available that can help you get your web application hosted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants