paint-brush
How I Organized my Node.js REST APIby@larswaechter
3,484 reads
3,484 reads

How I Organized my Node.js REST API

by Lars Wächter6mJanuary 23rd, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Lars Wächter shows you how he uses Node.js to organize his REST API. He uses express.js as web-framework and TypeORM as ORM. The APIs are mostly component based what makes it much easier to request only the data we really need. Each file represents one class that is exported and the API endpoints are defined. The API is based on the user component that contains all information about users. The service class acts like a wrapper for the database and writes data to the database.

Company Mentioned

Mention Thumbnail
featured image - How I Organized my Node.js REST API
Lars Wächter HackerNoon profile picture
Lars Wächter

Lars Wächter

@larswaechter

CS Student | Software Developer

Learn More
LEARN MORE ABOUT @LARSWAECHTER'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Lars Wächter HackerNoon profile picture
Lars Wächter@larswaechter
CS Student | Software Developer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Coffee-web