jefrydco / satset

Run lighthouse behind authentication

Home Page:https://jefrydco.id

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SatSet

Run lighthouse behind authentication

What's inside?

It contains the following packages/apps:

Apps and Packages

  • web: a Next.js app
  • api-next: an Nest.js server
  • ui: ui: a React component library
  • eslint-config-custom: eslint configurations for client side applications (includes eslint-config-next and eslint-config-prettier)
  • tsconfig: tsconfig.json;s used throughout the monorepo

Each package/app is 100% TypeScript.

Commands

$ node api.js --name="test1" --loginUrl="https://login.ajaib.co.id/login" --usernameSelector="input[name='email']" --passwordSelector="input[name='password']" --submitSelector="button[type='submit']" --hasPin=true --pinSelector=".pincode-input-text" --username="jefrydco@gmail.com" --password="YourSecretP@ssw0rd" --pin="0000" --url="https://invest.ajaib.co.id/#/saham/BBRI" --count="1"

Docker

This repo is configured to be built with Docker, and Docker compose. To build all apps in this repo:

# Create a network, which allows containers to communicate
# with each other, by using their container name as a hostname
docker network create app_network

# Build prod using new BuildKit engine
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f docker-compose.yml build --parallel

# Start prod in detached mode
docker-compose -f docker-compose.yml up -d

Open http://localhost:3000.

To shutdown all running containers:

# Stop all running containers
docker kill $(docker ps -q) && docker rm $(docker ps -a -q)

Utilities

This Turborepo has some additional tools already setup for you:

About

Run lighthouse behind authentication

https://jefrydco.id


Languages

Language:TypeScript 89.1%Language:JavaScript 5.9%Language:Dockerfile 4.9%