Skip to content
This repository has been archived by the owner on May 17, 2020. It is now read-only.
/ pc-builder Public archive

βš‘πŸ”§ A simple PC builder from scratch to determine the budget range of your selected components

Notifications You must be signed in to change notification settings

RinMinase/pc-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PC Builder

David-DM David-DM

Netlify-Status

Introduction

A simple PC builder from scratch to determine the budget range of your selected components created using React with TypeScript and deployed using Netlify.

Getting Started

Running the project

  1. Download the latest Node version. This is marked as <version number> Current. Install it on your machine.

  2. (Optional) Download Yarn. This is a faster package manager than the default npm one.

  3. Clone the project

    git clone https://github.com/RinMinase/pc-builder.git
    cd pc-builder
    
  4. Install the dependencies then run the project

    npm install
    npm start
    

    Note: If you have installed Yarn, run these instead:

    yarn install
    yarn start
    
  5. Fire up your browser and go to localhost:3000

Project Structure

.
β”œβ”€β”€ assets/                         # Project assets
β”œβ”€β”€ src/                            # Project source code
β”‚   β”œβ”€β”€ core/                       # Core components
β”‚   β”œβ”€β”€ <component>/                # Project component
β”‚   β”œβ”€β”€ global.d.ts                 # Project type definitions
β”‚   β”œβ”€β”€ global.scss                 # Main stylesheet
β”‚   β”œβ”€β”€ index.html                  # Main template file
β”‚   β”œβ”€β”€ index.tsx                   # Main scripts
β”‚   β”œβ”€β”€ reducers.ts                 # Root reducer file
β”‚   └── routes.tsx                  # Route definitions
β”œβ”€β”€ tsconfig.json                   # TypeScript configuration file
└── webpack.config.ts               # Webpack configuration file

Component Structure

<component>/
 β”‚   └── components/                # Sub-components folder
 β”‚       └── <component name>.tsx   # Sub-component
 β”œβ”€β”€ actions.tsx                    # Component actions and types
 β”œβ”€β”€ index.scss                     # Component stylesheet
 β”œβ”€β”€ index.tsx                      # Component entry file
 └── reducers.tsx                   # Component reducers

Display Structure

 ___________________
|  _______________  | <App />
| |_______________| |  β”œβ”€ <Nav />
|  _______________  |  β”‚
| |               | |  └─ <Container />
| |               | |      └─ <Route />
| |_______________| |
|___________________|

Building the project

Installations Required:

  • Node
  • (Optional) Yarn
  1. Fire up your terminal inside the project folder.

  2. Build the project by running:

    npm run build
    

    Note: If you have installed Yarn, run these instead:

    yarn build
    
  3. This should generate a /dist folder inside the project folder.

Project tasks

Task automation is based on Yarn scripts or NPM scripts.

Task Description
yarn start Run development server on http://localhost:3000/ with file watching on changes
yarn build Build production code
yarn deploy Build netlify deployment code

Built with

About

βš‘πŸ”§ A simple PC builder from scratch to determine the budget range of your selected components

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published