Skip to content

w3ye/rose-rocket-coding-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Driver Assginment

A logistic application that manages dispatch of drivers and their cargo orders.

Click here to see the demo

This Application is hosted using various services:

  • Client - Hosted on Netify
  • Server - Hosted on Heroku
  • Database - Hosted on AWS RDS

On The hosted version, there is a new inclusion of the reset button that refreshes the database. Please refresh the page after clicking reset

Font-end setup

The front end of this project is written in ReactJS

  1. Go the the client directory
  2. Run npm start in terminal

Back-end setup

For this project, I've decided to use PostgreSQL as my database.

Documentation for PostgreSQL can be found here

SQL queries to create drivers and orders table is found in /server/schema

SQL queries to insert seeds into drivers and orders is found in /server/seeds.

Prerequisites

This project uses pg-native as a dependency. So before running npm install please make sure you have installed the following:

MacOS

  • brew install postgres

Ubuntu/Debian

  • sudo apt-get install libpg-dev g++ make

Windows

For more information checkout pg-native's documentation

PostgresSQL setup

  1. Create a postgres database by running createdb rose-rocket-challenge in terminal OR run CREATE DATABASE rose-rocket-challenge within the PostgreSQL interactive terminal (psql)
  2. Create a .env file using .env.example as a template
  3. Enter database information to the .env file

NodeJS setup

  1. Go to the server directory run npm install in terminal
  2. Run npm run db:reset first thing, if you are running server for the first time
  3. Run npm run db:reset to reset the database
  4. Run npm start to start server

Features

Bonus Features can be found in FEATURES.md

All Features and requirements and it's completion can be found in Requirements.md

Screenshots

Screenshots of the progect and be found here

Tests

Pseudocode for tests can be found in TEST.md

Dependencies

Front-end

  • React
  • axios
  • node-sass
  • react-dnd

Backend

  • Express
  • morgan
  • pg
  • pg-native
  • dotenv
  • nodemon

Testing

  • Jest
  • storybook

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published