A service for managing users in DreamUp.ai.
278
A service for managing users in dreamup
This service self-hosts swagger docs at /docs
nvm use
npm install
npm run build
The tests depend on the services defined in dependencies.yml, in this case DynamoDB local.
# Start DynamoDB Local
docker compose -f dependencies.yml up --detach
# install dependencies
npm install
# Run Tests
npm test
This project uses dotenv to read environment files. Multi-environment setups are supported via the environment variable APP_ENV. On start, the server will load .env.${APP_ENV}. The start script and the user-service.yml file both assume APP_ENV=local, so you will need to create a file in the root of the directory called .env.local. For most purposes, copying .env.test should be sufficient. The .gitignore contains a rule to ignore .env*.local files.
# Build the project
npm run build
# Make sure dynamo is up, the user-service is up, and the pipeline table is created
npm run init-local
# Start the server
npm start
npm run compose-up
# OR
./scripts/up
# Down everything with
npm run compose-down
# OR
./scripts/down
You can pass any arguments supported by docker compose up and docker compose down when using the up and down scripts, respectively.
UNDER CONSTRUCTION
Check src/config.ts in the mean time.
Content type
Image
Digest
sha256:2e3d5ad56…
Size
65.7 MB
Last updated
about 3 years ago
docker pull dreamupai/user-service