/etsifyapi

Primary LanguageJavaScriptMIT LicenseMIT

etsifyapi

Development

Setup

pnpm install

.env

Create a .env file in the root of the project with the following content:

JWT_SECRET=your_jwtsecret
DB_HOST=mysql_url
DB_NAME=mysql_schema
DB_USER=mysql_user
DB_PASS=mysql_pass
S3_ACCESS_KEY=amazon.s3.access-key
S3_SECRET_KEY=amazon.s3.secret-key
S3_REGIN=amazon.s3.region
S3_ENDPOINT=amazon.s3.endpoint
S3_BUCKET_NAME=amazon.s3.bucket-name
STRIPE_SECRET_KEY=stripe.secret-key
GOOGLE_CLIENT_ID=google.client-id

Run the development server

pnpm dev

Run tests

Install Orta.vscode-jest in your VSCode and run the tests from there.

Run the tests in CLI:

pnpm test

Refresh the coverage report:

pnpm test -- --coverage

References