Giter Club home page Giter Club logo

week-6-elmp-test's Introduction

Week-5-ELMP DATABASE WEEK!


FAC Fortunes and Cookies

This week we aimed to learn about databases, specifically SQL, as well as advancing our Node knowledge.

  • Designing and documenting a database schema
  • Create a relational database
  • Read and write SQL queries
  • Avoid SQL injection vulnerabilities
  • Handle node errors
  • Testing SQL and servers

We used all this database and node wizardry to create a page where FAC20 submit their own quotes and wisdom, and receive a cookie containing the wisdom of others!

Schema

Wireframe

If you want to install locally rather than using the heroku link

  • Git clone this repo
  • Run npm install to set up node modules -- enter psql -- CREATE USER myuser SUPERUSER PASSWORD 'mypassword'; -- CREATE DATABASE learn_node_postgres WITH OWNER myuser;
  • Create .env file in project
  • Add DATABASE_URL variable in your .env file and assign to initialised database
  • npm run start will start the server

For the tests --

npm run test

Our team

  • Amber : quality ๐Ÿ•ต
  • Shaya : design ๐Ÿ‘ฉโ€๐ŸŽจ
  • Terrence : deployment ๐Ÿง™โ€โ™‚๏ธ
  • Trish : facilitator ๐Ÿงžโ€โ™€๏ธ

Our user stories

  • As a visually impaired user I would like to be able to navigate the page
  • As a user, I want to submit my own and other people's pearls of wisdom and check-in question answers for the rest of FAC to read
  • As a user, I want to come back later to read our responses as 'fortunes'
  • As a user, I want to know how to use the fortune cookie site and what it's for
  • Stretch goal: As a FAC20 member, I want to search through the wisdom of my cohort for specific people's answers

Acceptance Criteria

  • A form for users to submit data
  • A page showing all the data
  • Semantic form elements with correctly associated labels
  • A Postgres database hosted on Heroku
  • A schema describing your database in your README
  • Tests for server routes
  • Tests for database access
  • Tests for database access
  • Not process user input as SQL commands
  • Hidden environment variables (i.e. not on GitHub)

Tools/methods used

  • heroku!! Terrence is a heroku hero
  • figma !! Shaya is fiiiine with figma
  • dbdiagram (didn't break)
  • postgres (are we professionals yet?)
  • miro for mirroring our crazy 8s

Project presentation link: to be updated

week-6-elmp-test's People

Contributors

amberrignell avatar fairyaksh avatar trishtracking avatar netceer avatar

Watchers

James Cloos avatar  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.