Darcy is a social network that connects people from all over the world 🌎. Share your thoughts, photos, and interests with your friends and family 💬.
These instructions will help you get a copy of the project up and running on your local machine for development and testing purposes.
- Clone the repository:
git clone https://github.com/darcyinc/darcy-backend.git
- Navigate to the project directory:
cd darcy-backend
- Install the dependencies:
pnpm install
-
Rename the
.env.example
file to.env
and fill in the environment variables. -
Generate the Prisma client:
pnpm prisma generate
- (Optional) Migrate your database:
pnpm prisma migrate dev
or
pnpm prisma migrate deploy
Use the following command to build the project:
pnpm build
Use the following command to start the project in development mode (all microservices):
make start-dev
Use the following command to start the project in production mode (a screen will be created for each microservice, Linux only):
make start-prod
api
and the cdn
applications are exposed to the internet. By default, the api
application runs on port 4000
and the cdn
application runs on port 2006
.
We welcome contributions from the community! If you're interested in contributing, please read CONTRIBUTING.md for more information.
This project is licensed under the Apache 2.0 License.