Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/ChrisCore1/inventario_sud/llms.txt

Use this file to discover all available pages before exploring further.

Before you begin, make sure you have Node.js 18 or later installed on your machine and a Neon PostgreSQL account with a database ready to use. You will also need Git to clone the repository.
1

Clone the repository

Run the following command to clone Inventario SUD to your local machine:
git clone https://github.com/ChrisCore1/inventario_sud
cd inventario_sud
2

Install dependencies

Install all required packages using your preferred package manager:
npm install
3

Configure environment variables

Create a .env.local file in the project root and add the required variables:
touch .env.local
Open .env.local and set at minimum DATABASE_URL, NEXTAUTH_URL, NEXTAUTH_SECRET, and the SMTP variables. See Configure environment variables for a full description of every variable and an example file.
4

Seed the first admin user

Before logging in you need at least one user in the database. Run the seed script:
npm run db:seed
The script creates the user defined in scripts/add-user.ts. Edit that file first if you want a different email, password, or role.
5

Start the development server

npm run dev
Open http://localhost:3000 in your browser. You should see the Inventario SUD login page.
The development server runs at http://localhost:3000 by default. Set NEXTAUTH_URL=http://localhost:3000 in your .env.local file to match.

Build docs developers (and LLMs) love