You can see the challenge requirements here
• Features
• Environment variables
• Seeding DB
• Running locally
• Running tests
• Stack
• License
- Partner creation
- Partner searching by ID
- Search for nearest partner by coordinates
Remember to create the necessary .env files:
cp -r .env.sample .env
cp -r .env.sample .env.dev
PORT=3030
NODE_ENV="PRODUCTION"
MONGODB_USER="user"
MONGODB_PASSWORD="password"
MONGODB_DATABASE="database"
MONGODB_PORT="27017"
To preload the database with some data:
- First, remember to build the project to its latest version
pnpm build
pnpm db:seed
You can see the full list of data here
Clone the project:
git clone https://github.com/matheustrres/ze-code-challenge
Enter the project directory:
cd ze-code-challenge
Install the necessary dependencies:
pnpm install
Start the server in development mode:
pnpm start:dev
To run the existing tests, run the following command:
pnpm test
- Node.js
- Typescript
- Express
- MongoDB
- Mongoose
- Docker
- Zod
This project is licensed under the GPL 3.0 license.