Giter Site home page Giter Site logo

node-project's Introduction

Hi there ๐Ÿ‘‹ I'm Alaa Khattab ๐Ÿ‘ฉโ€๐Ÿ’ป

Full-Stack Web Developer

  • ๐ŸŒ I'm based in Palestine
  • ๐Ÿ”ญ Iโ€™m currently working on Open Screenplay as Full-Stack python and React Developer
  • ๐Ÿ“ซ How to reach me: [email protected]

Links:



Skills:






Github Stats:

node-project's People

Contributors

alaa-khattab avatar

Watchers

 avatar

node-project's Issues

File structure

Generally is ok, but few improvments are possible.

Why not create an assets folder where you can move words.txt.
Move router.js and utils.js to app folder.
And so on...

Generally speaking you want to leave the root directory clean with only the most important files, in this case index.js (where the servers starts), README, package.json and so on.

.gitignore, I can see the node_modules and npm-debug.log

I can see the node_modules and also npm-debug.log.

Usually you don't want this because node_modules are installed with npm install everytime someone downlaods your code and npm-debug.log is the result of some error in you computer while you were trying npm start.

Does that make sense?

You can add a .gitignore file and add both of them:

node_modules
npm-debug.log

More tests

Good job with the tests and continues integration!:) Really!

The next step is: If your life would depend on the app functioning correctly, would you feel comfortable with the number of tests your wrote and the edge cases you tested.

I think you can increase the number of tests on the backend and write some for the front-end.

High Cost on the Server Side

Dear,

I noticed this issue in your code, where you read the data from the text file everytime you have a request.
(https://github.com/Alaa-Khattab/node-project/blob/master/app/code.js#L2)
This will increase the cost on the server side and will cause high delay and bad user experience as well.
Also you process the results of the text every time inside the function.
(https://github.com/Alaa-Khattab/node-project/blob/master/app/code.js#L10)

In order to solve this issue, I recommend to do this process before calling the server and define it as a global variable then pass it throw the functions.

BR,

Intensive Requiest from the Frontend

Dear,

Each time you type/delete a character it fire's a request to the server. From design point of view, this will increase the demand on the server side and will increase the cost as well.
In order to solve such issue, you can manage it from server side or frontend side.
In case you want manage it from the server side, actually its hard to do it where the request doesn't has label and if you use cookies this will add more processes on the server.
So to solve this issue, its recommended to manage it from the frontend. where you can set a time out before triggering the request.

BR,

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.