ErnieAtLYD / crud-management-system

WORK IN PROGRESS: Simple CRUD management system based on concepts taught at BST

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple CRUD Management System

A simple management system that handles CRUD based on concepts taught at BST.

NOTE: This does NOT handle user logins or registrations. We use the concept as "users" as a resource example, but this can be swapped out with any resource as appropriate.

  • Frontend: axios, React: Create React App, React Router
  • Backend: Node, MySQL, ExpressJS, knex

NOTE: Using PicoCSS, a minimal CSS framework for semantic HTML

Installation instructions

  • npm install
  • create DB on MySQL
    • CREATE DATABASE crud_management_system;
  • edit knexfile.js with local DB user, password, and DB name
  • cd backend
    • npm install
    • npm run db:migrate
    • npm run db:seed
  • cd frontend
    • Edit /frontend/.env as needed if you're using a different localhost server URL
    • npm install

DB Schema (crud_management_system)

users

name type nullable notes
id int() false
first_name string false
last_name string false
email string false
avatar string true
last_created datetime()
last_updated datetime()

API Endpoints

  • GET: /api/v1/users
  • POST: /api/v1/users
  • GET: /api/v1/users/:user_id
  • PUT: /api/v1/users/:user_id
  • DELETE: /api/v1/users/:user_id

About

WORK IN PROGRESS: Simple CRUD management system based on concepts taught at BST


Languages

Language:JavaScript 93.9%Language:HTML 3.7%Language:CSS 2.1%Language:Shell 0.2%