Git Product home page Git Product logo

startrader's Introduction

StarTrader

By (Darth) Ben Perlmutter and Brad (Kenobi) Simpson - Live site

A long time ago in a galaxy far, far away...They needed a platform to sell used starships.

Table of Contents

StarTrader at a Glance

StarTrader is a full stack starship trading application for the Star Wars universe. Users can buy and sell their favorite starships from Star Wars. You can buy the Millennium Falcon from Han Solo, the Death Star from Admiral Tarkin, and more!

The application is made with a React frontend and the Arwes sci-fi UI library. The backend is a Flask server with a Postgres database.

Key Features

  • Create new users and have user login with authorization
  • Buy and sell starships (include unique special ships)
  • Post new starships for sale (only basic not unique)
  • Search for starships by starship class in the interface bar

StarTrader mini-demo

Technologies Used

  • Frontend
    • React
    • Javascript
    • Awres sci-fi UI framework
  • Backend

Application Architecture

The frontend is a create-react-app deployed to its own Heroku server and the backend deployed to a separate Heroku server. The two servers communicate with each other through RESTful APIs.

application architecture

Overview of application architecture

Database schema

StarTrader Postgres database schema

Frontend Overview

The React frontend is built based off of the Arwes sci-fi UI library. Arwes provides a set of components that give the website a sci-fi look and feel appropriate for the Star Wars theme.

Arwes was absolutely invaluable in providing the core building blocks for the UI. However, it has a fairly minimal component set, missing certain core functional components like modals and inputs. The presented the design challenge of envisioning and creating these essential components while remaining true to the existing Awres framework.

Styling was handled using the JSS tool to write CSS in JavaScript. The application is fully mobile responsive.

Here's an example of the modal component used to edit the profile account, which is made fully of custom components but emulates the existing Arwes framework.

Edit Listing Modal

Backend Overview

The Flask backend is a collection of RESTful routes serving data to the frontend and an interface with the Postgres database.

The database is queried using the SQLAlchemy ORM, and seed data was added using the Alembic library. The seed data was of particular importance to this application because we wanted to include a lot of Star Wars related data.

The data was provided via the Star Wars API (SWAPI) data. We used the data to create the models for adding listings and to create users based on the Star Wars films' characters.

Images were hosted in an Amazon S3 container.

Conclusion

StarTrader was a ton of fun to make because we both (Ben and Brad), are big Star Wars fans.

We think it turned out pretty good. We hit all of the features we wanted to hit, and didn't encounter any serious blockers throughout the development process. We learned a lot about both front and backend.

The force was with us on this project.

startrader's People

Contributors

bpmutter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

startrader's Issues

Species

i click the drop down box and nothing shows up and i cant sign up because its required

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.