For full instructions please see the codealong in Synapse!
- Create a new database, for example a new db called
instock
- Edit
.env
with your MySQL credentials and db name - Install node_modules
npm install
in the root folder, where thepackage.json
file is - Create tables by either running
knex migrate:latest
if you have the Knex CLI installed, or runnpm run migrate
from the package.json scripts - After creating tables run either
knex seed:run
ornpm run seed
to populate the tables with data - Finally you can start the project by running either
npm start
ornpm run dev
, the 2nd option will start withnodemon