Corbin-Arcus / The-Mana-Curve

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Mana Curve

https://the-mana-curve.herokuapp.com/

This is the README for the final solo project from App Academy. The project was inspired by Archideky and build using Javascript, React.js and Redux for the front end and Python with Flask for the backend.

Features

Sign up/Login with credentials

Read, add, edit and remove decks from the from the decks page

Read and add cards from the scryfall 3rd pary API

Read, add, and delete cards from a existing deck

Front End Routes - Logged In

<BrowserRouter>
      <NavBar />
      <Container>
        <Switch>
          <Route path='/login' exact={true}>
            <LoginForm />
          </Route>
          <Route path='/sign-up' exact={true}>
            <SignUpForm />
          </Route>
          <Route path='/cards/find' exact={true}>
            <CreateCardPage />
          </Route>
          <Route path='/decks/:id/edit' exact={true}>
            <UpdateDeckPage />
          </Route>
          <Route path='/decks/all' exact={true}>
            <DecksPage />
          </Route>
          <Route path='/cards/:id' exact={true}>
            <CardByIdPage />
          </Route>
          <Route path='/decks/new' exact={true}>
            <CreateDeckPage />
          </Route>
          <Route path='/decks/:id' exact={true}>
            <CreateCardPage setCurrentCard={setCurrentCard} currentCard={currentCard}/>
            <DeckByIdPage setCurrentCard={setCurrentCard} currentCard={currentCard}/>
          </Route>
          <ProtectedRoute path='/users' exact={true} >
            <UsersList/>
          </ProtectedRoute>
          <ProtectedRoute path='/users/:userId' exact={true} >
            <User />
          </ProtectedRoute>
          <ProtectedRoute path='/' exact={true} >
            <HomePage />
          </ProtectedRoute>
        </Switch>
        <Footer />
      </Container>
    </BrowserRouter>

Back End Routes

-- Posts

Read One Deck: deck_routes.route('/<int:id>')

Read All Decks: deck_routes.route('/all/<int:userId>')

Create Deck: deck_routes.route('/', methods=['POST'])

Update Deck: deck_routes.route('/<int:id>', methods=['PUT'])

Delete Deck: deck_routes.route('/<int:id>/', methods=['DELETE'])

To-Do List

upvote decklits then sort by number of upvotes

Comment on others decklists

Suggentions on search feature

About


Languages

Language:Python 59.4%Language:JavaScript 34.2%Language:CSS 2.8%Language:Dockerfile 1.3%Language:Mako 1.1%Language:HTML 0.7%Language:Shell 0.5%