Installation & Setup

Getting started with Stack in 5 minutes

Setup

To get started with Stack, you need a Next.js project with the app router. The pages router is not supported.

We recommend using our setup wizard, which will automatically detect your project structure and guide you through the installation process. In case it fails, you can choose to do the manual installation instead.

Post-setup

That’s it! Stack is now configured in your Next.js project. If you start your Next.js app with npm run dev and navigate to http://localhost:3000/handler/signup, you will see the Stack sign-up page.

Stack sign in page

After signing up/in, you will be redirected back to the home page. We will show you how to add user information to it in the next section. You can also check out the http://localhost:3000/handler/account-settings page which looks like this:

Stack account settings page

Next steps

Next up, we will show you how to retrieve and update user information, and how to protect a page.