I need help to make the following settings
techsystem81
FREEOP

8 months ago

rying to connect a database

technology system81
FREE

an hour ago

Access the Railway dashboard.

Click on "New Project""Provision PostgreSQL".

Wait for the creation and copy the generated DATABASE_URL.

Update the code to connect to PostgreSQL:

Install Prisma ORM to manage the database.

Create an initial user model.

I'll update the code now. 🚀

Edited

I updated the code to include Prisma ORM and a connection to the PostgreSQL database in Railway.

Next steps:
Run npm install @prisma/client to install Prisma.

Create the database schema with the npx prisma migrate dev command.

Test the /users route to verify that the connection is working.

Can you help me with this information?
Solved

1 Replies

chandrika
EMPLOYEE

8 months ago

Hi there, looks like all the information is steps to deploy on Railway. Could you please try to follow them and see if you run into any errors? As this is app specific and not regarding the platform, we are unable to provide direct support but I'd suggest trying these steps out and then searching the web, stack overflow etc for any errors you might run into

You can also check out our guide on https://docs.railway.com/guides/postgresql


Status changed to Awaiting User Response Railway 8 months ago


Railway
BOT

4 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 4 months ago


Loading...