Skip to content

kirillovmr/raspi-launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Game Launcher for EXPO 2020 CS #48 UIC Project

An electron application that is capable of launching games on our PlayStation that we created for EXPO 2020.

preview

Related

Install

# Clone the repository
$ git clone https://github.com/kirillovmr/raspi-launcher.git

# Go into the repository
$ cd raspi-launcher

# Install dependencies
$ npm install

Develop

Just run this command to start developing with hot reloading.

$ npm start

What's included

  • JSX support for React.
  • CSS modules support.
  • JS, CSS and assets automatic bundling.
  • Hot reloading via Webpack 4.

Folder structure

β”œβ”€β”€ electron-react-webpack/             # Your project's name, you can rename it

    β”œβ”€β”€ app/

        β”œβ”€β”€ build/                      # Webpack 4 will manage this folder for you
            β”œβ”€β”€ bundle.css              # Bundled CSS
            β”œβ”€β”€ bundle.js               # Bundled JS
            β”œβ”€β”€ ...                     # Your images will be copied here

        β”œβ”€β”€ src/

            β”œβ”€β”€ assets/                 # Images
                β”œβ”€β”€ electron.png
                β”œβ”€β”€ react.png
                β”œβ”€β”€ webpack.png

            β”œβ”€β”€ components/             # React Components
                β”œβ”€β”€ Link/               # To keep them modularized follow this structure:
                    β”œβ”€β”€ index.jsx       # Your component's React code
                    β”œβ”€β”€ styles.css      # Your component's scoped CSS
                β”œβ”€β”€ Logo/
                    β”œβ”€β”€ index.jsx
                    β”œβ”€β”€ styles.css

            β”œβ”€β”€ App.jsx                 # React main component where everything is tied up
            β”œβ”€β”€ renderer_process.js     # Electron's renderer-process, where you React app is called.
            β”œβ”€β”€ global.css              # Global CSS and global constants go here

        β”œβ”€β”€ index.html                  # This HTML only uses build/ folder's files

    β”œβ”€β”€ main.js                         # Electron's configuration. Whole app is launched from here
    β”œβ”€β”€ package.json
    β”œβ”€β”€ webpack.config.js               # Webpack 4 setup