Coder Social home page Coder Social logo

maex0 / softwarequalitywithcats Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 367 KB

Semester work in the module Software Quality Assurance @ Technical University of Applied Sciences in Rosenheim

License: MIT License

JavaScript 31.72% CSS 0.07% TypeScript 62.51% Shell 0.14% Dockerfile 4.55% Gherkin 1.01%

softwarequalitywithcats's Introduction

Software Quality with Cats

GitHub Workflow Status CodeQL E2E Test

Bugs Code Smells Lines of Code Coverage

Quality gate

Description

Welcome to SoftwareQualityWithCats, a project that was developed in the second semester of my Masters's degree at the TH Rosenheim in the module Software Quality Assurance.

A detailed description of the architecture and structure of this project can be found in the wiki.

The Cat API https://thecatapi.com is used for this project.

Table of Contents

  1. Installation
  2. Scripts
  3. Configuration
  4. Contributing
  5. License

Installation

Follow these steps to set up the project on your local machine.

Prerequisites

Docker Compose

To run the application using Docker Compose:

  1. Clone the repository:

    git clone https://github.com/maex0/SoftwareQualityWithCats.git
    cd SoftwareQualityWithCats
  2. Build and start the containers:

    docker-compose up --build

    This command builds the images if they do not exist and starts the containers defined in your docker-compose.yml.

  3. Open http://localhost:3000 to view the application.

Local Development

To run the application locally in development mode:

  1. Navigate to the next directory:

    cd next
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm run dev

    The application will start on http://localhost:3000. The page will reload if you make edits.

Production

To build the application for production:

npm run build

This will create an optimized build of the application in the .next directory.

To start the production server:

npm start

Scripts

Here are some of the most useful scripts you can run:

  • dev: Runs the application in development mode.
  • build: Builds the application for production.
  • start: Starts the application in production mode.
  • lint: Lints the codebase for potential errors and formatting issues.

Configuration

I used two different configuaration files (.env files). One inside the root directory for the postgres database, and the other one inside the next folder for specific frontend or backend related configurations.

These are the environment variables used inside the root folder:

POSTGRES_USER=your_postgres_user
POSTGRES_PASSWORD=your_postgres_password
POSTGRES_DB=your_postgres_db

These are the environment variables used inside the next folder:

DATABASE_URL=your_database_url
API_KEY=your_api_key
API_URL=your_api_url
FAVORITE_COUNT=your_favorite_count

These variables need to be set in order to run the application correctly.

Contributing

Contributions are welcome! Please follow the following contribution guidelines when submitting pull requests.

  1. Fork the repository.

  2. Create your feature branch:

    git checkout -b feature/YourFeature
  3. Commit your changes:

    git commit -m 'Add some feature'
  4. Push to the branch:

    git push origin feature/YourFeature
  5. Open a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

softwarequalitywithcats's People

Contributors

maex0 avatar

Watchers

 avatar

softwarequalitywithcats's Issues

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.