Git Product home page Git Product logo

03-mini-fullstack's Introduction

๐Ÿ’ฝ To run

  1. Fork and Clone Repo
  2. npm install at root of directory
  3. npm start at root to start react app on localhost 3000
  4. cd into 'src/server' and npm start to open server on localhost 3001
  5. pull postgres from docker:
  • docker exec -it <container-ID> bash
  • psql -U postgres
  1. Create a database called cheatsdb
  • CREATE DATABASE cheatsdb;
  1. Spin up knex in terminal from src/server path:
  • npx knex migrate:latest will add a table to your DB
  • npx knex seed:run will fill it with some initial values
  1. You can add 'cheets' to your library on the Add a Cheet page. Specify a categoru to file it or leave thhe category blank to file it in "Other"
  • NOTE: After finising the project that was working smoothly, our DB crashed. When bringing back up, we noticed that it OCCASIONALLY takes several submits to get the first item to display on the home page.
  1. On the home page, you can see all your logged cheats and filter them based on category.

๐Ÿฅž Mini Full Stack Project

This project is your first foray into full stack development! We want you to create a CRUD application that:

  • stores some user-generated data in a database
  • is able to retrieve and manipulate that data properly

This application should have:

  • React front end
  • Express server
  • PostgreSQL database.

๐Ÿง€ App Plan

Create a coding cheatsheet hub

โœ… Initial Must Dos

  • Inputs into a field
  • Push Inputs into a list
  • Post inputs to server using Express
    • on submit, POST to server with a fetch()
  • write inputs to local storage (data.json)
  • send json data to '/'
  • GET data from '/' to display
  • replace local storage .json file with database using knex

๐Ÿ“ฑ App Layout

  • Home Page

    • Navbar
      • Links to input sheet
      • links to category
    • Search Function
      • Category (dropdown)
    • Display Cheats based on category
      • delete input option
  • Cheatsheet -> Input Cheat

    • Input fields
      • Title
      • Description
      • Category
        • dropdown with a list of exisiting
        • add button and input to add a new category to the list

๐Ÿ‹๐Ÿผโ€โ™€๏ธ Stretch goals

  • Add a dropdown selecter
  • Use buttons to filter based on category

๐Ÿ’„ Styling Points

  • Click on name to display description
    • toggle view icon
      • status: button clicks to toggle the view of description but does not toggle icon on button

03-mini-fullstack's People

Contributors

akpinkerton avatar

Watchers

 avatar

Forkers

kellraym

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.