PlayApp | A boilerplate chat application on top of React | GraphQL library
kandi X-RAY | PlayApp Summary
kandi X-RAY | PlayApp Summary
A boilerplate chat application on top of React, React-Native, Relay, GraphQL, RethinkDB and Typescript
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PlayApp
PlayApp Key Features
PlayApp Examples and Code Snippets
Community Discussions
Trending Discussions on PlayApp
QUESTION
I am using play framework 2.4 my application was working fine before installing UI components e.g (grunt
,ruby
,npm
,cpmpass
)i did not know much about them but I needed these for my project UI
to work there is a folder node_modules
under the public
directory of the play app which is causing too much time to run/test the project whenever I gave run
or test
command I have seen lots of folders are being started to create at location
ANSWER
Answered 2017-Aug-09 at 05:59As a scala developer, I think you don't have much undertanding of how these tools work together. First you need to understand how these tools works and why do we need them.
I suppose you are using Yeoman, Grunt, Bower, SASS(Though Compass) and using them through NPM(Node Package Manager).
NPM (Node Pakcage Manager):
It gets installed when we install node in our machine, it is used to install/run different software tools on your machine from npm repository.
Yeoman:
its a web scaffolding tool, by using this we can scaffold our web application by choosing any combination of tools (like angular + Requirejs + SASS + Grunt etc). It saves our time by configuring all these modules together and we can create further components (i.e. web pages, controllers etc) through commands without having worries of configuring/embedding within already created components. yeoman do this for us.
Grunt:
Its a javascript task runner. You can configure tasks in GruntFile.js and run it though grunt-cli (you need to install it as well). We can save a lot of development time by using watcher with automatic tasks configured like compile, concate, minify/uglify, running test cases, running jshint/lint, compiling SASS/SCSS into CSS whenever changed etc.
Bower:
its used for automatic dependency management for web, that means you don't have to send all the libraries along with project whenever you need to send/deploy on any server, through bower, you can install all the dependencies with just one command (i.e. bower install) and it reads form the bower.json file and install all the listed dependencies. (Internally it uses git)
Compass:
Its a compiler for SASS/SCSS, it is used to convert SASS/SCSS files into plain css files. Why use SASS/SCSS ? ---> we can use variables, parent/child concept, inheritance concept through SASS/SCSS and it reduces our work and its easy to change variables/parent classes than to change styling in every element in plain css, so it saves us much development time and provide a better management mechanism. (gem from ruby is required to install this)
node_modules:
When we need to use some automatic tasks for javascript, We need to install them through npm (npm install), it reads form package.json file and install all the dependencies listed in package.json file required by grunt or other tools (gulp, Compass, yeoman etc). We can also install development dependencies through npm instead of bower.
Do you really need node_modules ?
If you are using bower for dependency management for libraries, then we can have a workaround for your problem, you can keep public folder separate i.e. outside of your main project and run grunt commands to compile/build JS/CSS files, then you can copy those compiled files in your public folder (you can configure this whole process through grunt and you don't have to manage it separately) and then you won't be having node_modules folder in your project directory and it would not get compiled and hopefully it would save your time.
QUESTION
I hava (multiple) play apps running (Play Framework 2.5). The process list with "htop" looks like that:
...ANSWER
Answered 2017-May-17 at 10:34Htop by default shows each thread as a separate process. Maybe this can help you. https://unix.stackexchange.com/questions/10362/why-does-htop-show-more-process-than-ps
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PlayApp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page