A React Payroll app
- React (v16)
- Express.js (v4) as production and development server
- Webpack 4 (production and development configurations)
- SCSS support (+ sanitize.css included)
- ES2015+
- PostgreSql
- preconfigured eslint and Prettier code formatter
- React Hot Loader
- Linux/MacOS/Windows
npm install -g nodemon
Clone this repository onto your local machine
npm install
createdb DATABASE_NAME -U USERNAME
psql -d DATABASE_NAME -U USERNAME -f tables.sql
psql -d DATABASE_NAME -U USERNAME -f seed.sql
# run development mode
npm run dev
# run production mode
npm run build
npm start
# run prettier
npm run prettier
# run lint
npm run lint
# run on a different port
HTTP_PORT=3001 npm run dev
- User password for seeded users are "pw" + NAME (eg: "pwbatman" for user named batman. Only the user named Captain America's password is "pwcapam")
- Have yet to create a route to show employees, contracts, and payroll.
- Learnt about react-admin too late, did not implement, but I think it would be good to use.
Some operating systems do not copy the server files to the build directory.
See the documentation here: https://github.com/calvinmetcalf/copyfiles/blob/master/readme.md