WilliamCMajor / employee-manager-build

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Employee Manager Day 10

Install. To start install the project node_modules by running npm install

Development. Start the server so the client can access the api npm run server. Make sure your are in the employee-manager directory when you run this command. To view any edits you make run snowpack dev from the employee-manager root folder. The project should run on localhost:3000

Production. When your read to deploy to Netlify you first must build a deployment build of the client site. To do this run snowpack build. This will create a new folder called www inside the employee manager folder. This folder contains the optimized production bundle. Once you have this folder created commit your changes to git and visit your Heroku app an test your project.

Data Reset. There is an api route /api/departments/reset that will copy the original data back to the employee.json file. You can run this command locally from the browser by running http://localhost:5000/api/departments/reset

About


Languages

Language:JavaScript 44.0%Language:SCSS 29.6%Language:HTML 19.5%Language:EJS 6.9%