Skip to content

nikhin-keyvalue/test-nav

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AM-i CRM

CI Build and push crm-web docker image to github container registry

environment url cloudwatch dashboard deploy status
dev Fargate service URL AWS Cloudwatch dashboard  Deploy crm-web to dev
acc Fargate service URL AWS Cloudwatch dashboard  Deploy crm-web to acc

Table of contents

Getting Started

First, install the dependencies. (Node version 18.x is recommended)

npm install

Generating the types of the api will be handled automatically by "postinstall". However, it is still possible to generate types afterwards by running this npm script.

npm run codegen

Create an enviroment variables file based on the example and fill in the values

cp .env.example .env

Run the development server.

npm run dev

Validate docker image

Build Docker Container:

docker-compose build

Start Docker Container:

docker-compose up -d

Deployment

Build the docker image and dont forget to fill in your token.

docker build -t crm-web-docker --build-arg NPM_TOKEN={GH_ACCESS_TOKEN} .

End-to-End Tests

Follow these steps to run end-to-end tests locally:

  1. Run Tests:

    • To run tests:
      npm run test:e2e
      
    • To run tests in headed mode:
      npm run test-headed:e2e
      
  2. View Test Reports (Optional):

    • After running tests, the test reports will open automatically.
    • If they don't open, run the following:
      npm run show-e2e-test-report
      

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages