Introduction to projects

A project is one product. This guide covers what it holds, how it relates to organizations and environments, and every step from creating it to serving real users.

Gleisson MatosFounder & CEO6 min read
On this page

The first thing you create in Nulvless is a project. Almost everything else, from users and sign-in methods to email templates, Edge Functions and logs, lives inside one.

This guide is for people who have not used Nulvless before. It explains what a project is, how it fits with organizations and environments, what you get the moment it is created, and the path from an empty project to one that serves real users.

Organization, project, environment

Three objects hold everything else, one inside the other.

organization · Acme Inc.
├── project · Acme web app
│   ├── environment · main      → <project>.nulvless.co
│   └── environment · develop   → <project>-develop.nulvless.co
└── project · Acme partner portal
    └── environment · main      → <project>.nulvless.co
  • The organization is your company or team. It owns billing, the plan and the members who can reach the console.
  • A project is one product. It holds the services your product uses and the configuration for them.
  • An environment is a full, separate copy of the project, with its own users, sessions, providers, templates and keys. Every project starts with one environment, main, which is production.

One project per product

A project maps to a product, not to a codebase or a team. The question to ask is whether two apps share the same people.

  • A web app and its mobile app, where the same person signs in on both: one project. Both apps use the same users, the same roles and the same sessions.
  • Two products with separate customers, such as your main app and a partner portal: two projects. Their users never mix, and each can be paused or deleted on its own.
  • Staging, QA or a developer sandbox: not a project. Those are environments of the same project.

If you are unsure, start with one project. Splitting users across projects later is harder than adding an environment.

What comes in every project

Every project is created with three services already installed:

  • Authentication: sign-up, sign-in, users and sessions, with passwords, social providers, one-time codes, multi-factor and sudo mode.
  • Communications: email and SMS templates per channel and language, sent through the platform or through your own providers.
  • Logs: the requests and events of the project in one searchable trail.

Around those, the console gives each project the rest of what a product needs:

SectionWhat it is for
OverviewStatus of each service, recent activity and traffic at a glance
Edge FunctionsTypeScript that runs next to sign-in, with the user already in the request
DeploymentsEvery merge between environments and every function release, step by step
EnvironmentsCreate environments and compare them before promoting changes
API keysThe publishable and secret keys of each environment
Redirect URLsWhere sign-in is allowed to send users back to
ObservabilityTraffic, latency and errors over time
ApplicationsThird-party apps that sign in with your product through OAuth
SettingsName, custom domain, pause and delete

Authorization comes with authentication: roles, scopes and grants are configured in the same place, and checked with the same SDK.

Creating a project

Open the console

Sign in at cloud.nulvless.com. The first time, you create an organization; after that, the organization page lists its projects.

Create the project

Choose Create project and give it a name, usually the name of your app. The name takes between 3 and 35 characters and can be changed later.

Wait for it to build

A new project starts as Building while its production environment is provisioned, and becomes Active when it is ready to serve requests.

The name is what you read in the console. The project also gets a slug, a short identifier generated by the platform. The slug is what appears in URLs, in the CLI and in the API, and it does not change when you rename the project.

Your project's address

Each environment answers on its own URL, called its issuer. Production, main, gets the bare project slug. Every other environment adds its own slug:

https://<project>.nulvless.co            ← main
https://<project>-develop.nulvless.co    ← develop

The issuer is the first thing your app needs. It is the first argument when you create a client with the SDK:

lib/nulvless.ts
import { createClient } from '@nulvless/nulvless-js';

export const nulvless = createClient(
  'https://<project>.nulvless.co',
  'pk-…',
);

The issuer is also a standard OpenID Connect issuer. It publishes its discovery document and signing keys, so any compliant library can verify the tokens your project issues without custom code.

Keys

Each environment has two keys, shown under API keys:

  • The publishable key (pk-…) goes in the browser and in mobile apps. It can only do what the signed-in user could already do.
  • The secret key (sk-…) stays on your servers. It reaches the administrative parts of the API and must never appear in client code or in your repository.

Keys belong to one environment. A key from develop is not accepted by production, so a test build cannot reach real users by mistake.

Environments

Every project starts with main. Depending on your plan, you can add more, such as develop or staging, from Environments or from the environment picker at the top of the console.

An environment is a separate store, not a filter. A user created in develop does not exist in production, because it was never written there. A new environment therefore starts empty: no users, no providers and none of the settings you made elsewhere.

What moves between environments is configuration, and only when you promote it. You compare two environments, read the list of settings that differ, and merge. Each merge is recorded as a deployment with who requested it and what changed. Why staging users can never reach production explains the reasoning in detail.

What belongs to the environment, and what belongs to the project

Most things live in an environment. A few belong to the project as a whole.

Belongs to each environmentBelongs to the project
Users, identities and sessionsName and slug
Sign-in methods, password policy and MFAEdge Functions and their releases
Social provider credentialsCustom domain (served by main)
Email and SMS templates and providersInstalled services
Roles, scopes and grantsDeployment history
API keys and redirect URLs

Members are neither: they belong to the organization, and their organization role decides which projects they reach.

Plans and limits

How many projects an organization can have, how many environments each project gets, and which features are included, such as merges between environments and custom domains, depend on the plan. The current numbers are on the pricing page.

Paused projects do not count toward the project limit. If you reach it, you can pause or delete a project you no longer use, or change plans.

Pausing, restoring and deleting

From Settings you can:

  • Pause a project. Its environments stop answering requests and you cannot change its settings, but all of its data is kept. A paused project does not count toward your plan's limit.
  • Restore a paused project. It answers again with everything it had.
  • Delete a project. This removes every environment, user and log it holds, and cannot be undone.

From the terminal

Everything above can also be done with the CLI:

nulvless projects create "Acme web app"
nulvless projects list
nulvless projects get
nulvless projects health

projects health checks whether each service of the project answers, and how fast. pause, restore and delete ask for the slug typed out, so you always confirm which project you mean.

Before you go live

A short checklist for the day a project starts serving real users:

  1. Use the issuer and publishable key of main in your production build.
  2. Keep the secret key only in your server's environment variables.
  3. List your production URLs under Redirect URLs. Sign-in only returns to URLs on that list.
  4. Configure your own credentials for each social provider in production.
  5. Set up your email and SMS providers, so messages come from your domain.
  6. If you work in develop or staging, compare into main and read the diff before you merge.
  7. If your plan includes it, add a custom domain such as auth.example.com.

Next

Keep reading

Guides4 min read

Deploy React auth to Vercel in minutes

Email and password sign-up with a confirmation link, sign-in, and an account page with every active session, live on Vercel. Four console settings, one example app and one deploy.

Gleisson Matos