nest js, prisma and mysql - stack

I'm a beginner and would like to develop projects in nest js and next js, therefore if anyone could please recommend several projects that would be useful for increasing my siklls, that would be very appreciated.
want to learn Nestjs, prisma query with swagger

Related

Auto code grading system like codecademy's

I'm building a ruby on rails application with most of the views with react. I'm considering using CodeMirror as an editor for users to type in code. I want them to be able to submit the code, and the code will be run through some of my test cases and get results back, similar to how codecademy works.
What are some initial steps to achieve this?
Thank you!
Have a look at the http://reactrb.org site. There is live code editors on there. Source code for the doc site is on github.
If the code examples are in either ruby or JS you can run the test scripts in the browser (for ruby you will use opal-rspec) This makes sandboxing easy.
Sounds like a great project. If you need additional questions or help stop in at https://gitter.im/zetachang/react.rb There are a couple of people there who can help you out with the details.

Is there a straight-forward way of doing an ORM roundtrip workflow in Grails 3+?

For the last few years I have been a Symfony developer and one of the things I enjoy the most is the fact that I don't have to write/maintain entities by hand.
Through Doctrine (the integrated ORM) I can extract the table metadata and relations through
php app/console doctrine:mapping:import SomeBundle yaml
And then I can generate the ORM entity classes
php app/console generate:doctrine:entities SomeBundle
And I'm friggin' done.
Need to migrate?, no problem. Use this command to create a migration:
doctrine:migrations:diff
And the following to migrate to it:
doctrine:migrations:migrate
For Grails, it seems that there is no straight forward way, unless I go and download the Hibernate tools and a tool like Liquibase.
There seem to be a couple of plugins that did this, but the one for reverse engineering from a database does not seem supported for Grails 3 (db-reverse-engineer) and the one for migrations I tried, but does not seem stable enough (database-migration).
Am I just looking in the wrong place?, if not, how do you as a professional Grails developer solve these needs?
No there is not a straight forward way to make a "round-trip" as you describe in Grails 3.x.
Most plugins aren't going to be 3.x ready yet. 3.x is still quite new.
That said, the reverse engineering plugin isn't designed to be a fully automated one-shot handles everything type of plugin. It's suppose to be a running start that you take the last bit by hand.
The migration plugin on the other hand is fully production ready and very stable in 2.x.

Is it possible to create a self contained ruby on rails package?

I'm currently looking into what language to build a web application on that will be sold to companies. To make things easier, I was hoping to package the webapp into a convenient installer that contains the entire stack which will run automatically.
Is there any way to create a self contained RoR package?
The only project I'm aware of is called pkgr, which bundles an entire rails app into a DEB package. So if you don't mind limiting your installs to Ubuntu/Debian, you could give it a try.
pkgr home page
Github
You can write a rake task to automatize everything for you. Migrations, bundling, enviroment setup. And it's pretty much plain Ruby, too.
In the end it would be just running a script file to do the job.

Integration of Yeoman's angular generator with backend (Rails or Sails)

I'm planning to use Yeoman's Angular generator and some backend (current options are Sails or Rails).
My main concern right now is to come up with a decent integration between the front-end and back-end, so I have a few points that confuse me a bit:
Yeoman's build process generates a dist folder. How can I integate the build process (and point to it from the backend) when my backend is set at production?
I'll have to run startup process for both the backend and frontend, which looks ugly. Also get them running in same port.
If I keep the frontend and the backend on different projects, that may clean things a bit, but what is going to be my worflow by working on two different projects? Maybe I could include the front-end project as a git package on my backend public folder?
Based on your experience, what is the best way to do this?
You should take a look at this.
http://www.emmanueloga.com/2013/07/23/Using-AngularJS-with-a-Rails-backend.html

Any suggestion for Ruby on Rails multilingual translation management?

I am developing a Ruby on Rails application with multilingual support. Now I have 4 languages, each have a separate yml file. I found this is inconvenience that when I add a new translation, I need to add all the lines manually to each yml file.
Does any good translation management tools can help me on this?
Thanks everyone. :)
Here are some links that I've gathered
Free (gems)
https://github.com/firmafon/iye IYE makes it easy to translate your Rails I18N files and keeps them up to date
https://github.com/tolk/tolk Tolk is a web interface for doing i18n
translations packaged as an engine for Rails 4 applications
https://github.com/local-ch/i18n-docs Maintain translations in Google
Docs and export them to your Rails project.
https://github.com/mynewsdesk/translate A Ruby on Rails plugin with a
web interface for translating I18n texts
https://github.com/mose/rails-i18nterface A rails 3/4 engine based
interface for translating and writing translation files
https://github.com/fourmach/i18n_dashboard Rails Engine for I18n
management with redis as backend
https://github.com/grosser/fast_gettext Ruby GetText, but 3.5x faster
... https://github.com/copycopter/copycopter-server /
http://copycopter.com Copycopter Server is open source. Run it as a
web service.
https://github.com/nijel/weblate / http://weblate.org/
/ Web based translation tool with tight Git integration.
Paid (apps)
http://www.tr8nhub.com/pricing (starting free - https://github.com/tr8n/tr8n)
https://www.localeapp.com/pricing (24€/month)
https://translationexchange.com/pricing ($39/month)
https://phraseapp.com/ ($9/month /language/project)
more advices http://eng.joingrouper.com/blog/2014/04/03/rails-internationalization-translation/
http://www.smartling.com/product (Contact Sales - complex)
Personally I'm using http://99translations.com/ Easy to use for non-programmers, eg. translators and free for the open source projects.
Another service https://webtranslateit.com/ is growing and in active development (blog is updating frequently). They have also free plan, on which you can store up to 500 strings, even for non open source project.
Both have API, for which they have rake task to update translations on your local machine and also on their server. Actually never used, but I think it's good when you have > than 1000 strings and updates are frequent.
Tolk can help you to do that: http://github.com/tolk/tolk
You can try using Translate to edit YML files.
There's https://github.com/berk/tr8n but it looks pretty hard core and it focuses more on the front end crowdsourcing component.

Resources