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
The front end of this project is written in ReactJS
- Go the the
client
directory - Run
npm start
in terminal
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
.
This project uses pg-native as a dependency. So before running npm install
please make sure you have installed the following:
brew install postgres
sudo apt-get install libpg-dev g++ make
- Install Visual Studio C++
- Install PostgreSQL
- Add postgreSQL bin path to system path
For more information checkout pg-native's documentation
- Create a postgres database by running
createdb rose-rocket-challenge
in terminal OR runCREATE DATABASE rose-rocket-challenge
within the PostgreSQL interactive terminal (psql) - Create a
.env
file using.env.example
as a template - Enter database information to the
.env
file
- Go to the
server
directory runnpm install
in terminal - Run
npm run db:reset
first thing, if you are runningserver
for the first time - Run
npm run db:reset
to reset the database - Run
npm start
to startserver
Bonus Features can be found in FEATURES.md
All Features and requirements and it's completion can be found in Requirements.md
Screenshots of the progect and be found here
Pseudocode for tests can be found in TEST.md
- React
- axios
- node-sass
- react-dnd
- Express
- morgan
- pg
- pg-native
- dotenv
- nodemon
- Jest
- storybook