Skip to content

Ryan-Jones1999/nodejs-express-govuk-mysql

 
 

Repository files navigation

nodejs-express-govuk-mysql

Database

  1. Create an empty database
  2. Run the following command from the base of your cloned directory to create the required database structure:
mysql --host=<localhost> --user=<your_username> --password=<your_password> <your_database_name> < employeesdb.sql

Properties file

  1. Create a file in the app directory called 'dbconfig.json'
  2. Add the following contents to the file:
{ 
    "connectionLimit": 10, 
    "host":     <database host>, 
    "user":     <username>,
    "password": <password>,
    "database": <database name>
}

How to start the nodejs-express-govuk-mysql application

  1. Run npm install to build your application
  2. Start application with npm start
  3. To check that your application is running enter url http://localhost:3000/employees

About

A sample project using Node JS, Express, GOV.UK Design System and MySQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 71.6%
  • SCSS 14.1%
  • HTML 13.9%
  • Shell 0.4%