Follow these steps to get the project up and running on your local machine:
- Ensure you have
Node.js v20.10.0
installed. - Ensure you have
pnpm
installed.
-
Clone the Repository
git clone https://github.com/BM-Warehouse/Server.git cd Server
-
Duplicate and Configure Environment Variables
cp .env.example .env
Make necessary changes in the
.env
file. -
Install Dependencies
pnpm install
-
Set Up Husky
pnpm prepare:husky
-
Run Database Migrations
pnpm prisma:migrate
-
Start the Server
pnpm start
To explore the database, run:
pnpm prisma studio
Here are some useful scripts you can run:
-
Install Dependencies
pnpm install
-
Prepare Husky for Git Hooks
pnpm prepare:husky
-
Run Database Migrations
pnpm prisma:migrate
-
Start the Development Server
pnpm start
-
Run Linter and Unit Tests
pnpm lint pnpm test
-
Open Prisma Studio
pnpm prisma studio
A brief overview of the project structure:
/src
: Contains the source code./prisma
: Contains Prisma schema and migrations.
This project is licensed under the MIT License. See the LICENSE file for more details.
Contributions are welcome! Please check out the contributing guidelines to get started.
For more details, check out our documentation.
Happy coding! 🚀