Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nishanbajracharya committed Dec 28, 2024
1 parent 60c7a98 commit 5400a19
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 8 deletions.
75 changes: 73 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,76 @@
# listly
# Listly

[![Deploy to GitHub Pages](https://github.com/nishanbajracharya/listly/actions/workflows/deploy.yml/badge.svg)](https://github.com/nishanbajracharya/listly/actions/workflows/deploy.yml)

Ranked list maker
Listly is a ranked list maker application that allows users to create, compare, and rank lists with ease. This project is deployed on GitHub Pages and is built using modern web technologies.

## Getting Started

To get started with Listly, follow these steps:

### Prerequisites

- Node.js (version `22` or higher)

### Installation

1. Clone the repository:
```sh
git clone https://github.com/nishanbajracharya/listly.git
```
2. Navigate to the project directory:
```sh
cd listly
```
3. Install the dependencies:
```sh
npm install
```

### Running the Application

To run the application locally, use the following command:

```sh
npm run dev
```

This will start the development server and you can access the application at http://localhost:3000.

### Running Tests

To run the tests for the application, use the following command:

```sh
npm test
```

This will execute the test suite and display the results along with test coverage.

### Building for Production

To build the application for production, use the following command:

```sh
npm run build
```

The production-ready files will be generated in the dist directory.

### Deploying to GitHub Pages

To deploy the application to GitHub Pages, use the following command:

```sh
npm run deploy
```

This will build the application and push the dist directory to the gh-pages branch.

### Contributing

If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.

### License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
File renamed without changes.
2 changes: 1 addition & 1 deletion test-utils/render.tsx → tests/__utils/render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Notifications } from '@mantine/notifications';
import { render as testingLibraryRender } from '@testing-library/react';

// Import your theme object
import theme from '../src/theme';
import theme from '../../src/theme';

export function render(ui: React.ReactNode) {
return testingLibraryRender(<>{ui}</>, {
Expand Down
2 changes: 1 addition & 1 deletion tests/components/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { describe, it, expect } from 'vitest';

import App from '../../src/App';
import { l } from '../../src/modules/language';
import { render, screen, fireEvent } from '../__utils';
import en from '../../src/constants/localization/en.json';
import { render, screen, fireEvent } from '../../test-utils';

describe('App component', () => {
const navigation = [
Expand Down
2 changes: 1 addition & 1 deletion tests/components/Compare.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { Router } from 'wouter';
import { describe, it, expect } from 'vitest';

import { l } from '../../src/modules/language';
import { render, screen, fireEvent } from '../__utils';
import Compare from '../../src/components/pages/Compare';
import en from '../../src/constants/localization/en.json';
import { render, screen, fireEvent } from '../../test-utils';

describe('Compare component', () => {
const list = ['A', 'B', 'C'];
Expand Down
2 changes: 1 addition & 1 deletion tests/components/Home.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { describe, it, expect } from 'vitest';
import { l } from '../../src/modules/language';
import Home from '../../src/components/pages/Home';
import en from '../../src/constants/localization/en.json';
import { render, screen, waitFor, fireEvent } from '../../test-utils';
import { render, screen, waitFor, fireEvent } from '../__utils';

describe('Home component', () => {
const listInput = 'A,B,C,D';
Expand Down
2 changes: 1 addition & 1 deletion tests/components/Rank.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import Shell from '../../src/components/Shell';
import { l } from '../../src/modules/language';
import Rank from '../../src/components/pages/Rank';
import { encode } from '../../src/modules/encoding';
import { render, screen, fireEvent } from '../__utils';
import en from '../../src/constants/localization/en.json';
import { render, screen, fireEvent } from '../../test-utils';

describe('Rank component', () => {
const list = ['A', 'B', 'C'];
Expand Down
2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineConfig({
coverage: {
provider: 'istanbul',
exclude: [
'**/test-utils/**',
'**/tests/__utils/**',
'**/tests/**',
'**.config.cjs',
'src/main.tsx',
Expand Down

0 comments on commit 5400a19

Please sign in to comment.