Report this

What is the reason for this report?

Nextjs + express server + postgress database

Posted on March 10, 2021

I’m searching for a valid tutorial to deploy a nextjs as a frontend and express server as a backend woth posgtgres database. All in one place --> Here !

As i’m pretty new to node i would appreciate some guidance.

Thanks in advance.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.

Deploying a Next.js app with an Express server and a Postgres database requires you to typicall follow these steps:

  1. Create a Next.js app
  2. Setup Express Server
  3. Configure Postgres database
  4. Deploy the Next.js app

While we don’t have a tutorial that includes all these steps specifically in one place, we have guides that separately cover each step. Here are some resources for you:

To get you started with Next.js, you can check this tutorial.

For setting up Express server, this guide can come in handy.

Regarding Postgres configuration, you can follow our detailed tutorial.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.