jaktestowac / gad-gui-api-demo

GAD🦎 - Application for learning testing GUI and API
https://jaktestowac.pl/about-gad
GNU General Public License v3.0
14 stars 10 forks source link
api gui testing

Introduction

GAD

This application (called 🦎 GAD) was prepared and developed only for testing purposes. It provides:

This application contains simple logic, statistics, charts, games, different resources, deliberately prepared bugs🐛 and various challenges.

Thanks to this configuration, we are able to reflect real project reality😉

P.S. In addition, the application has some serious design flaws - I wonder if you will notice them?😉

Features

Features of 🦎 GAD:

Deployment

Instructions how to deploy presented service to various free hosting sites.

Deploy on Local

Requirements:

First use

Steps:

  1. Open the project root directory in cmd/terminal
  2. Clone the repository using git clone ...
    • this is the preferred way to use this application
  3. Run npm i
    • to install modules (don't use node.js global packages!)
  4. Run npm run start
    • to start GAD

The application will be available at http://localhost:3000

Update version

If You are using zip package

Steps:

  1. Download zipped repository
  2. Unzip and replace Your local instance of GAD
  3. Run npm i in root directory
    • to install new modules
  4. Run npm run start
    • to start GAD

If You are using cloned repository

Steps:

  1. Open the project root directory in cmd/terminal
  2. Pull latest changes using git pull
  3. Run npm i
    • to install new modules
  4. Run npm run start
    • to start GAD

Update version if You have any changes (e.g. in database)

One possibility is to reset all Your local changes and pull new version.Using this method You will lose all Your local changes and data!

Steps:

  1. Open the project root directory in cmd/terminal
  2. Reset local changes and pull latest changes using:
    git reset --hard HEAD
    git pull
  3. Run npm i
    • to install new modules
  4. Run npm run start
    • to start GAD

Read Only mode

This mode disables all POST, PUT, and PATCH methods, besides login.

To run GAD in Read Only mode, use the following commands:

PowerShell:

$env:READ_ONLY=1; npm run start

Bash:

READ_ONLY=1 npm run start

Run on selected port

GAD runs on default port 3000.

To run GAD on selected port, use the following commands:

PowerShell:

$env:PORT=3001; npm run start

Bash:

PORT=3001 npm run start

Windows Cmd:

set PORT=3001 && npm run start

Deploy to Glitch

No account needed - but your project will be deleted in 5 days.

After clicking button below wait a minute or two to finish deployment.

Remix on Glitch

To see website:

When deploying the GAD application on Glitch, please be aware that the application may not function fully due to the limitations of the Glitch platform. However, we are making every effort to ensure the highest possible compatibility.

Deploy to Render

Deploy to Render

When deploying the GAD application on Render, please be aware that the application may not function fully due to the limitations of the Render platform. However, we are making every effort to ensure the highest possible compatibility.

Deploy using Docker image

This method can be used:

Prerequisites:

On local environment:

Running

Just run following command to get latest image:

docker run -p 3000:3000 -d jaktestowac/gad

or specific version:

docker run -p 3000:3000 -d jaktestowac/gad:2.5.5

Application should be running under http://localhost:3000/

Images are available at: 🐋 hub.docker.com/repository/docker/jaktestowac