Skip to content

mttetc/cryptoguessr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Crypto Guessr

This app uses React, Typescript, Shadcn, Zustand, Tanstack Query, Vite, Cypress, Binance API, AWS lambda, AWS dynamoDB, AWS api gateway, SAM.

Link : https://main.d2xcbwz138rr7q.amplifyapp.com/

How to Launch the App

  1. Install Dependencies:

    npm install
  2. Start the Development Server

      npm run dev

By default, the app will be available at http://localhost:5173.

How to Run Tests

  1. Run Unit Tests
    npm run test

How to Run Cypress Tests

  1. Ensure the Development Server is Running: Make sure the app is running at http://localhost:5173. If you need to change the base URL, update the baseUrl in the Cypress configuration file (cypress.config.js) and the port in vite.config.ts.

  2. Run Cypress

    npx cypress open

This will open the Cypress Test Runner where you can run your tests.

Configuration

Cypress Configuration

If your app is not running at http://localhost:5173, you need to update the baseUrl in the Cypress configuration file.

For example, in cypress.config.js:

 module.exports = {
     e2e: {
         baseUrl: 'http://localhost:5173',
     },
 };

Vite Configuration

If you need to change the port for the Vite development server, update the vite.config.js file:

export default {
    server: {
        port: 5173,
    },
};