Giter Club home page Giter Club logo

employee-app's Introduction

employee-app

An application that allows a user to see employees names, email, phone number, and photo, as well as add, update, and delete employees as needed.

Installation

Use Homebrew to install PostgreSQL

brew install postgresql

Install dependencies

npm install

Create & start PostgreSQL DB

pg_ctl -D /usr/local/var/postgres start
createdb employee-app

Run migration

psql -d employee-app -f db/migrations/migration-one.sql

Seed DB

./script.js

Start express server

npm start

cd to client directory Install dependencies

npm install

Run the app

npm start

vist http://localhost:3000/

TODOs/Production Enhancments

  • write tests for server side logic
  • add validation for form
  • add more information for each employee
  • overall design appeal
  • add environment variables
  • have separate development and production builds
  • add client side routing

Bugs

  • unable to close form once open -> need to update state

Challenges

It's been awhile since I have created an application from scratch so getting back into that flow took me a second. I have also never used postgresql with a node application so that took some understanding. I also struggled to get the react app and node server to cooperate on Heroku. I spent a good amount of time trying to track down my errors but ultimately decided to focus on the code. The backend server can be hit at https://employee-catalogue-app.herokuapp.com/api/employees along with the other endpoints.

employee-app's People

Contributors

cnessler avatar

Watchers

 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.