Skip to content

janvi-kalra/loadtester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fireworks Application

Demo Video

I run through the challenge:

https://www.loom.com/share/cce3b705f9b24089bb8dea94187a12ed

Running the Project with Docker

To run the project using Docker:

  1. Clone the repository:

    git clone https://github.com/janvi-kalra/loadtester.git
    cd loadtester
  2. Build and start the Docker containers:

    docker-compose up --build
  3. Access the services:

    • The backend will be accessible at http://localhost:8000
    • The frontend will be accessible at http://localhost:3000
    • The backend swagger docs will be accessible at http://localhost:8000/docs

I've tested on Docker and it WAI. It should look something like: Screen Shot 2024-08-01 at 3 48 43 PM

Running the Project Locally

If you prefer to run the project locally without Docker, follow these steps:

Backend Setup

  1. Navigate to the backend directory:

    cd backend
  2. Create a virtual environment:

    python -m venv env
  3. Activate the virtual environment:

    • On Windows:
      .\env\Scripts\activate
    • On macOS/Linux:
      source env/bin/activate
  4. Install the required dependencies:

    pip install -r requirements.txt
  5. Run the FastAPI server:

    uvicorn main:app --reload

    The backend server will start on http://127.0.0.1:8000.

Frontend Setup

  1. Navigate to the frontend directory:

    cd ../frontend
  2. Install the required dependencies:

    npm install
  3. Run the frontend development server:

    npm start

    The frontend server will start on http://localhost:3000.

Running Tests

Backend Tests

  1. Ensure the virtual environment is activated.
  2. Navigate to the backend directory:
    cd backend
  3. Run the tests:
    pytest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published