Giter Club home page Giter Club logo

Comments (10)

tienyuan avatar tienyuan commented on June 12, 2024 1

Sails.JS - Started an app, put it into a docker container, hooked up postgres, added new model/controller, stopped when adding a view

  • Pros: So starting an application was easy, it has a MVC structure and files are organized well.
  • Cons: But the docs are poor and the community around it seems to be slowing down. Most articles I found were written for an earlier version.
  • Can I hook up a sql db? 👍Yes, hooking up a db was very easy
  • Can I make a tiny CRUD form? 👍Yes, I made the model/controller with the generator with no trouble, but went down a rabbit hole when I realized I needed to learn vue to add a page.
  • Is this possible to use this? 👎Probably but I wouldn’t vote for it due to poor docs/community
  • Is this time consuming/super hard? 👎Backend is fast to build with, but requires learning a 2nd framework (vue)
  • Is it worth the effort? 👎Probably not unless we only want to use it as a backend
    I'll try something else if I've got time today

https://news.ycombinator.com/item?id=16749148

from heart.

mitchellwandrews avatar mitchellwandrews commented on June 12, 2024

I'll put together something this weekend using node/express and JWT for authentication. Definitely my prefered framework as I have had a lot of experience with it, but I also know python/flask/django and I'm sure I could learn Keystone. If I have time I'll also write some simple unit tests to demo.

from heart.

tienyuan avatar tienyuan commented on June 12, 2024

Very cool @mitchellwandrews ! Yes, it'd definitely be valuable to get your thoughts on how well express might fit this project.

from heart.

tienyuan avatar tienyuan commented on June 12, 2024

I'm trying out https://sailsjs.com/

from heart.

jonmelvin avatar jonmelvin commented on June 12, 2024

Is Sails what you would recommend I look at?
(Work got busy, so it will be slower going than last week - sorry.)

Jon Melvin

PS - did you see the database scripts? They are from my CSharp project. For the nodejs: I put the table creation right in the nodejs app I created so that there are not separate modules to keep in synch - a nice approach for small apps.

from heart.

tienyuan avatar tienyuan commented on June 12, 2024

@jonmelvin Choose whatever catches your eye.

If you chose a different framework, we'd have more to compare next Monday.
If you overlap, we'd have another perspective. All good :-)

If you favor nodejs, some newer frameworks I haven't mentioned already are:

Found them in https://2018.stateofjs.com/back-end-frameworks/overview/

Or one of the python or ruby ones I mentioned in the original description.

Freetime changes alot, at least for me! So let's work to pick something developer-friendly, so we can all make the most of our time!

from heart.

mitchellwandrews avatar mitchellwandrews commented on June 12, 2024

@tienyuan I have heard good things about koajs but I haven't used it yet. Might try that instead of express since I already have a good feel for express.

from heart.

tienyuan avatar tienyuan commented on June 12, 2024

@mitchellwandrews nice! Yes, if you already know the pros and cons of express, totally try Koa. It would be nice to see how it compares. Maybe it'll reaffirm the argument for express ¯\(ツ)

from heart.

mitchellwandrews avatar mitchellwandrews commented on June 12, 2024

KoaJS - Built a simple crud app for notes, hooked up to mysql on AWS RDS with Knex.js query builder. Didn't get to implement auth or any tests, but since it's a JS framework JWT and normal node testing frameworks should work well with it.

  • Pros: very lightweight minimalist framework, built by the team behind express.js
  • Cons: Decent documentation, but I feel that express has better documentation
  • Can I hook up a sql db? 👍 yes, super easy
  • Can I make a tiny crud form 👍 yes, routing is very friendly to es6 syntax
  • Is this possible to use this? 👍 yes, but would rather use express because of better docs/familiarity
  • Is this time consuming/super hard? 👎 no built to be very lightweight and easy to use
  • Is it worth the effort? 👍 Yes, would be some initial learning curve but seems to be lightweight and good for building api's fast

from heart.

tienyuan avatar tienyuan commented on June 12, 2024

We've decided on Express serving backend and frontend pages. Pages will use react components and the database is Postgres.

from heart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.