Skip to content

Commit

Permalink
Merge pull request #141 from Real-Dev-Squad/develop
Browse files Browse the repository at this point in the history
dev to main sync
  • Loading branch information
iamitprakash authored Sep 28, 2024
2 parents 22b16d8 + 54e588c commit 2cde1c5
Show file tree
Hide file tree
Showing 4 changed files with 369 additions and 237 deletions.
120 changes: 62 additions & 58 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,62 @@
# Frontend for Skill-tree
Display the skills a user has and the endorsements created for adding new skills to users profile

## Production URL
- [https://skills.realdevsquad.com/](https://skills.realdevsquad.com/)

## Staging URL
- [https://staging-skilltree.realdevsquad.com/](https://staging-skilltree.realdevsquad.com/)

## Tech Stack:
- [NextJs v14.24 (Reactjs)](https://nextjs.org/)
- [react-query](https://tanstack.com/query/v3/)
- [Vitest](https://vitest.dev/)
- [Msw](https://mswjs.io/)

## Setup and running locally

### Prerequisites
#### Volta
- [Why Volta?](https://docs.volta.sh/guide/#why-volta)
- To install Volta, please follow this [Guide](https://docs.volta.sh/guide/getting-started)

#### Node.js
- Version - 20.11.1
- Install Node.js using the following command:
```sh
volta install [email protected]
```

### Setup

1. **Environment Setup**:
- Create a file named `env.local` in the root directory.
- Copy the contents of `env.sample` and paste them into `env.local`.

2. **Setup locally**:
- Setup `dev.realdevsquad.com` for development using the instructions here - [Avoiding CORS during development](https://github.com/Real-Dev-Squad/website-code-docs/tree/main/docs/dev/https-dev-url-cors)

3. **Install Dependencies**:
```sh
npm i
```

4. **Run the Development Server**:
```sh
npm run dev
```
5. **Go to Website**:
https://dev.realdevsquad.com

### Testing

- To run tests run the following command:

```sh
npm run test
```

# Frontend for Skill-tree
Display the skills a user has and the endorsements created for adding new skills to users profile

## Production URL
- [https://skills.realdevsquad.com/](https://skills.realdevsquad.com/)

## Staging URL
- [https://staging-skilltree.realdevsquad.com/](https://staging-skilltree.realdevsquad.com/)

## Tech Stack:
- [NextJs v14.24 (Reactjs)](https://nextjs.org/)
- [react-query](https://tanstack.com/query/v3/)
- [Vitest](https://vitest.dev/)
- [Msw](https://mswjs.io/)

## Setup and running locally

### Prerequisites
#### Volta
- [Why Volta?](https://docs.volta.sh/guide/#why-volta)
- To install Volta, please follow this [Guide](https://docs.volta.sh/guide/getting-started)

#### Node.js
- Version - 20.11.1
- Install Node.js using the following command:
```sh
volta install [email protected]
```

### Setup

1. **Environment Setup**:
- Create a file named `env.local` in the root directory.
- Copy the contents of `env.sample` and paste them into `env.local`.

2. **Setup locally**:
- Setup `dev.realdevsquad.com` for development using the instructions here - [Avoiding CORS during development](https://github.com/Real-Dev-Squad/website-code-docs/tree/main/docs/dev/https-dev-url-cors)

3. **Install Dependencies**:
```sh
npm i
```

4. **Run the Development Server**:
```sh
npm run dev
```
5. **Go to Website**:
https://dev.realdevsquad.com

### Testing

- To run tests run the following command:

```sh
npm run test
```
- To generate coverage report use the command below:

```sh
npm run test:coverage
```
Loading

0 comments on commit 2cde1c5

Please sign in to comment.