Getting Started
This guide will help you set up the Nodesify Admin environment on your local machine for development.
Prerequisites
Before you begin, ensure you have the following installed:
- Node.js: Version 20.12.0 or higher.
- pnpm: Version 10.0.0 or higher.
- Docker: Required for running the database (PostgreSQL) and cache (Valkey/Redis).
Installation
Clone the repository:
bashgit clone https://github.com/your-org/nodesify-admin.git cd nodesify-adminInstall dependencies:
bashpnpm install
Setting up Infrastructure
Start Docker services: We use Docker Compose to manage the PostgreSQL database and Valkey (Redis) cache.
bashcd docker # Start services in the background docker compose up -d- PostgreSQL: Exposed on port
54331 - Valkey: Exposed on port
63791
- PostgreSQL: Exposed on port
Initialize the Database: Run the setup script to generate the Prisma client, apply migrations, and seed default data.
bashcd ../apps/backend-api pnpm db:setup- This will create the default users (e.g.,
nodesify,admin) with password123456.
- This will create the default users (e.g.,
Running the Application
Return to the root directory to start the development environment.
bash
# Go back to root
cd ../..
# Start both Frontend and Backend
pnpm dev- Frontend: http://localhost:5555
- Backend API: http://localhost:5320
- Documentation: http://localhost:5173 (if running
pnpm dev:docs)
Common Commands
| Command | Description |
|---|---|
pnpm dev | Starts the full stack (Frontend + Backend). |
pnpm dev:ele | Starts only the Frontend (apps/web-ele). |
pnpm dev:docs | Starts the Documentation server (apps/docs). |
pnpm build | Builds all applications for production. |
pnpm check | Runs type checking and linting across the monorepo. |
pnpm clean | Removes node_modules and build artifacts. |
Default Accounts
The database is seeded with the following accounts (Password: 123456):
- Super Admin:
nodesify - Administrator:
admin - Regular User:
jack - Finance User:
finance_user - HR User:
hr_user - Warehouse User:
warehouse_user