Questions tagged [express.js]
Express is a minimal and flexible Node.js web application framework, providing a robust set of features (regex-based routing, sessions, multiple view / templating engines) for building single and multi-page, and hybrid web applications.
168 questions
4
votes
1
answer
53
views
2
votes
0
answers
95
views
To-do app with TypeScript backend (violations of TS best practices or unidiomatic code)
The working code in full is here.
It's a To-Do App with a TypeScript backend, written as practice for an upcoming 4-hour interview for a TypeScript backend role. My colleague and I would like to know, ...
3
votes
1
answer
119
views
Consuming sharded database using node.js
I think the only big improvement that can be made is to check which shard to query based on the userIds of the followed users. One easy way is to check the last ...
0
votes
1
answer
46
views
MVC Pattern - Need to include services file or not?
I am refactoring an old project, made in Nodejs with Express, applying the MVC pattern, today it is a fairly simple project: handling of the FCM and Remote Config tools from Firebase.
Would it be ...
2
votes
1
answer
95
views
Session-based authentication using Express.js
I'm currently learning Express.js and I wrote this authentication code. I'm unsure if what i have is correct, how to improve it and if it's secure. For user and session data storage I'm using ...
1
vote
1
answer
143
views
Rock, paper, scissors game in expressjs typescript
This is a simple 2 player game made in NodeJS and the ExpressJS framework with typescript. I've built using OOP approach to as far of an extent as I know of it. I'm really curious as to how further ...
5
votes
1
answer
90
views
Basic node authentication system
I built a basic authentication system for a node application and I have some security concerns. The username and password the user enters when they log in are stored as plaintext using express-...
2
votes
1
answer
170
views
Express.js and jsonplaceholder application
I have put together a small node application with Express.js and jsonplaceholder.
On the homepage, it displays posts by all users. You can also filter posts by one user (author).
In ...
4
votes
0
answers
81
views
Simple Markdown Blog
this is my first real website I created after learning about web development.
It's amazing to me that anyone would spare their free time to code review strangers' code. So thank you in advance. I'd ...
1
vote
1
answer
86
views
1
vote
1
answer
823
views
Common CRUD function in node js using Express
I have created common function for CRUD operations.
I am using Sequelize JS, I have created all models in Sequelize
I have written stored procedures in mysql for CRUD operations for each module/tables ...
2
votes
2
answers
88
views
Blog API implementation in node.js
This code is from my blog project. This project is almost done. This is working well.
I can create new posts and update and display all saved posts.
...
1
vote
1
answer
85
views
Making my login function more readable and maintainable
I recently wrote a login function in my express application that does the following:
Verifies the user's email and password are correct
Generates a JWT Access Token with a short expiry date, and then ...
3
votes
0
answers
59
views
Right structure, three-layered architecture webdevelopment
My question is have i gotten the three-layered architecture right with error handling etc. I have a webpage containing different resources. The code works but I am not sure if have structured it ...
2
votes
0
answers
46
views
Tiny REST API for making CRUD operations on list of posts
This is not a question related to a bug.I've just created a very tiny node.js/express API for education purposes.
I've created a very little ...