Coder Social home page Coder Social logo

stresser's Introduction

Stress it

A Web GUI for k6

Installation

#npm
npm install

#yarn
yarn install

And then initialize Prisma

#1.
prisma:init
#2.
db:dev
#npm
npm install

#yarn
yarn install

Install k6 for local dev

following the the instruction in this link:

Docker

Build Image

# AMD based cpu
docker build -t stress-it:1.0.0 --build-arg='K6_NAME=k6-v0.48.0-linux-amd64' .
# ARM based cpu
docker build -t stress-it:1.0.0 --build-arg='K6_NAME=k6-v0.48.0-linux-arm64' .

ENV

DATABASE_URL = postgres://{user}:{password}@{hostname}:{port}/{database-name}
# use `yarn gen:secret` to get the secret
AUTH_SECRET  =
# Do NOT use same secret from AUTH_SECRET
APP_SECRET =
# GOOGLE OAuth (https://console.cloud.google.com/)
# make sure set redirect url to http://{domain}:{port}/api/auth/callback/google
# for dev, just set it the redirect url to  http://localhost:3000/api/auth/callback/google
GOOGLE_CLIENT_ID =
GOOGLE_CLIENT_SECRET =

Update ENV

ENV should be added to three places

  1. env var of gitlab ci/cd
  2. add the env var to the container env of the app in deployment.yaml
  3. add to gitlab-ci variables in the beginning of the file

stresser's People

Contributors

billyen2012 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.