Installation¶
Follow these steps to install and set up Atlas ERP on your local machine.
1. Clone the Repository¶
Clone the repository to your local machine and navigate into the project directory:
2. Install Dependencies¶
Atlas ERP uses Turborepo and pnpm workspaces. Install all dependencies from the root of the project:
| Bash | |
|---|---|
3. Set Up Environment Variables¶
You need to configure the environment variables for both the backend and frontend applications.
| Bash | |
|---|---|
Open both .env files and fill in the required values. See the Environment Variables guide for details on each variable.
4. Start Infrastructure (Optional but Recommended)¶
If you have Docker installed, you can start PostgreSQL and Redis using the provided docker-compose.yml (if available) or ensure your local PostgreSQL and Redis instances are running.
5. Database Setup & Migrations¶
Atlas uses Prisma as its ORM. Run the following command from the root to push the database schema to your database. This will create all the necessary tables.
| Bash | |
|---|---|
Alternatively, if you are setting up for the first time, you can also run:
| Bash | |
|---|---|
6. Seed the Database¶
Populate your database with essential default data (like default roles, admin user, etc.):
| Bash | |
|---|---|
7. Start the Development Servers¶
You can start both the frontend and backend servers concurrently using Turborepo from the root directory:
| Bash | |
|---|---|
Alternatively, you can start them individually:
Terminal 1 (Backend):
Terminal 2 (Frontend):
Next Steps¶
Your application should now be running! - Frontend: http://localhost:3000 - Backend API: http://localhost:3001
You can proceed to Running Locally for more details on managing the development environment.