Skip to content

Setup sass in react App. #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
ed32725
[Delivers #187584861] setup GitHub action to run tests
AimePazzo Jun 25, 2024
8a2d79d
Merge branch 'develop' of github.com:atlp-rwanda/e-commerce-ninjas-fe…
AimePazzo Jun 27, 2024
6e6e5af
[Delivers #187584857] setting tests on the client
AimePazzo Jun 27, 2024
7304aad
[Delivers #187584860] Setup readme file
ndahimana154 Jun 27, 2024
884fe52
--ammend
ndahimana154 Jun 27, 2024
4feb560
--ammend
ndahimana154 Jun 27, 2024
45ae582
--ammend
ndahimana154 Jun 27, 2024
53c071f
mend
ndahimana154 Jun 27, 2024
81450d8
mend
ndahimana154 Jun 27, 2024
c115168
mend
ndahimana154 Jun 27, 2024
eb0ad22
mend
ndahimana154 Jun 27, 2024
0dbb9d9
[Delivers #187584860] Setup sample sass styles
ndahimana154 Jun 28, 2024
d76202a
-ammend
ndahimana154 Jun 28, 2024
1538634
[Delivers #187584859] Setup sample sass styles
ndahimana154 Jun 28, 2024
c0c23c4
[Delivers #187584859] Setup sample sass styles
ndahimana154 Jun 28, 2024
4cefc4b
added badges
AimePazzo Jun 28, 2024
5de1880
Merge pull request #3 from atlp-rwanda/ch-setup-codeclimate-187584861
key-joshua Jul 1, 2024
a0435a3
Merge pull request #4 from atlp-rwanda/ch-setup-readme-187584860
key-joshua Jul 1, 2024
a559a09
[Delivers #187584860] Setup sample sass styles
ndahimana154 Jun 28, 2024
ce7ca2f
-ammend
ndahimana154 Jun 28, 2024
3162e08
[Delivers #187584859] Setup sample sass styles
ndahimana154 Jun 28, 2024
013268b
[Delivers #187584859] Setup sample sass styles
ndahimana154 Jun 28, 2024
9a6d020
Merge branch 'ch-setup-sass-187584859' of https://github.com/atlp-rwa…
ndahimana154 Jul 1, 2024
b51532b
--ammend
ndahimana154 Jul 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"plugin:@typescript-eslint/recommended",
"plugin:storybook/recommended"
],
"ignorePatterns":["jest.config.ts"],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
push:
branches:
- develop
pull_request:
branches:
- develop

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Clear npm cache and reinstall dependencies
run: |
npm cache clean --force
npm install

- name: Run tests explicitly with npm run
run: |
npm run test --if-present -- --passWithNoTests

- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
48 changes: 42 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# e-commerce-ninjas-fe
Front end repository for the teams' project
# E-COMMERCE NINJAS WEB APPLICATION - FRONTEND

Our e-commerce web application server, developed by Team Ninjas, facilitates smooth online shopping with features like user authentication, product cataloging, and secure payments. It's built to enhance the user experience with high performance and reliability. Suitable for any online marketplace looking to grow.


## Hosted Application URL

[https://e-commerce-ninja-fn-staging.netlify.app/](https://e-commerce-ninja-fn-staging.netlify.app/)

## Github repository

[https://github.com/atlp-rwanda/e-commerce-ninjas-fe](https://github.com/atlp-rwanda/e-commerce-ninjas-fe/tree/develop)


[![Maintainability](https://api.codeclimate.com/v1/badges/a7dce016f123cdcc9042/maintainability)](https://codeclimate.com/github/atlp-rwanda/e-commerce-ninjas-fe/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/a7dce016f123cdcc9042/test_coverage)](https://codeclimate.com/github/atlp-rwanda/e-commerce-ninjas-fe/test_coverage)
[![Netlify Status](https://api.netlify.com/api/v1/badges/a3ed5a75-a862-4f3b-ba21-8369180cf3e6/deploy-status)](https://app.netlify.com/sites/e-commerce-ninja-fn-staging/deploys)
[![Coverage Status](https://coveralls.io/repos/github/atlp-rwanda/e-commerce-ninjas-fe/badge.svg)](https://coveralls.io/github/atlp-rwanda/e-commerce-ninjas-fe)

## Completed features
- Setup empty react
Expand All @@ -19,10 +35,30 @@ Front end repository for the teams' project
```bash
npm run dev
```

## StoryBook

To run storybook for documentation, use this command

## StoryBook
To run storybook for documentation, use the command
```bash
npm run storybook
```sh
npm run storybook
```

## Folder Structure

- `public`: Contains static files like `index.html` and images.
- `src`: The main source folder for the React application.
- `components`: Reusable UI components.
- `pages`: Different pages/screens of the application.
- `store`: Redux store setup and slices.
- `stories`: StoryBook stories for UI components.
- `utils`: Utility functions and helpers.
- `.babelrc`: Babel configuration file.
- `.eslintrc`: ESLint configuration file.
- `.gitignore`: Specifies which files and directories to ignore in Git.
- `package-lock.json`: Automatically generated file that describes the exact tree of dependencies.
- `package.json`: Contains project metadata and dependencies.
- `README.md`: The readme file you are currently reading.
- `tsconfig.json`: TypeScript configuration file.
- `webpack.dev.config.ts`: Webpack configuration file for development.
- `webpack.prod.config.ts`: Webpack configuration file for production.
12 changes: 12 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"preset": "ts-jest",
"testEnvironment": "jsdom",
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
},
"moduleNameMapper": {
"\\.(css|less|scss|sass)$": "identity-obj-proxy"
}
}
Loading
Loading