DEV Community

How To Build a CRUD RESTful API with Node.js, Prisma, and PostgreSQL in 5 Steps

Nditah on August 09, 2021

Introduction Object Relational Mapper (ORM) is a framework that provides layers of abstraction over database to facilitate interacting w...
Collapse
 
gitdan42 profile image
Okolo Daniel Kelechi

Good Afternoon sir, please how do I navigate through this problem

okolo@okolo-HP-Pavilion-dv9700-Notebook-PC:~/playlist$ sudo docker-compose up -d
Starting playlist_postgres_1 ...
Starting playlist_postgres_1 ... error

ERROR: for playlist_postgres_1 Cannot start service postgres: driver failed programming external connectivity on endpoint playlist_postgres_1

(448f91e82201fd683d2ea1c5955e62a47db27d1b9ab779730e14ec59425de0ce): Bind for 0.0.0.0:5432 failed: port is already allocated

Collapse
 
nditah profile image
Nditah

Check if docker is already running the database container
sudo docker ps

Collapse
 
gitdan42 profile image
Okolo Daniel Kelechi

Thank you sir, the problem is resolved now.

Collapse
 
onyishi_chetachi profile image
Onyishi Chetachi • Edited

What a wonderful write-up and well researched. The material is really rich and educative.

Collapse
 
nditah profile image
Nditah

Thank you for the support!

Collapse
 
mcbriandavids profile image
Imonisa Oghenekevwe Brian

Hello, I love your write up but, it was helpful but I have this challenge of not being able to make a post from a route I named idea to reference a user. In others words I want a an idea to belong to n accessed my the user. Plz how do I go about that. I'm using Prisma 3.3

Collapse
 
noleykuz profile image
Noleykuz

nice job Boss . am having some issue with it

Collapse
 
nditah profile image
Nditah

Please go ahead and share the issue you are having.

Collapse
 
danazy profile image
Ani Daniel Chukwuemeka

Nice one.

Collapse
 
ebyjoan profile image
EbereJoan

Thank you so much sir for this amazing writeup

Collapse
 
yahnic profile image
Yahnic

Awesome lesson Sir. I have completed it. Moving to the next lesson. Thanks

Collapse
 
nditah profile image
Nditah

Sounds great. Keep moving forward!

Collapse
 
youngmikec profile image
youngmikec

This is a very good article, so simple and explanatory. Absolute master piece.

Collapse
 
nditah profile image
Nditah

Thank you for your kind words. What out for more amazing contents!

Collapse
 
olusoladeboy profile image
Emmanuel Olusola

Thank you for this piece

Collapse
 
nditah profile image
Nditah

So nice of you. I am grateful for the support.

Collapse
 
r3n4nr profile image
Renan Ramalho

it was very helpful, thanks

Collapse
 
madwithcode profile image
akhilesh krishnan

hi, can i use prisma without typescript ?, my project doesnt use typescript

Collapse
 
paulho1973 profile image
paulho1973

I always feel like typescript is more suitable for server-side with strong type checking. While I prefer to use JavaScript for client-side like React for faster application development.