Code Monkey home page Code Monkey logo

unity-frontend's Introduction

Unity Game Listings App: Front-end

a simple web based front-end interface with a form to add more game tiles to the backend service

The front-end is built with the following technologies:

* react.js
* react-hook-form
* axios

Table of Contents

Setup

  • clone the repository and cd into the directory
  • npm install

Running the Application

Pre-requisites

In order for this app to work completely, the backend server will need to be running as well to process the requests from this app.

Development mode

npm start

This runs the react app in development mode. The app will be available on http://localhost:3000/

Environment Setup

The .env file will need to be populated with a REACT_APP_API_SERVER key which references the backend server running.

The app will leverage two APIs which are fulfilled when the backend server is running:

  • <REACT_APP_API_SERVER>/api/game to submit new game listings via POST

  • <REACT_APP_API_SERVER>/api/upload to upload images to google cloud storage via POST

Styles

CSS

Plain CSS was used as the project was small and did not require mixins and complex variables.

Component specific styles exist under each component's folder. For example, component checkbox will look like this:

checkbox
 -index.jsx
 -styles.css

All other generic styles are applied in the App.css file.

Form Validation

React Form Hook

To read more about this hook, please visit https://react-hook-form.com/get-started

Run the following command npm install react-hook-form

Import the hook into your component

import { useForm } from "react-hook-form"

Contributors

Jumanah Al Asadi [email protected]

unity-frontend's People

Stargazers

Shrey Malhotra avatar

Watchers

James Cloos avatar Juju on the web avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.