npm run dev
This script prints out every error message possible in the application to ease the debugging process. It also automatically restarts the server after a file save.
npm run debug
-
Create
remind_clone
database in your local MySQL Server by runningCREATE DATABASE remind_clone;
. -
Create an
.env
file from the given.env.example
file to configure MySQL Server connection. For example:
DATABASE_NAME=remind_clone
DATABASE_PASSWORD=password
DATABASE_HOST=localhost
DATABASE_USERNAME=root
- Execute this command
npm run migrate:up
. This will run the latest migration files found in/databases/migrations
.
Note: Sometimes, stuff happens... If any error popped up during this process, please consider dropping and creating the database again, then rerun npm run migrate:up
.
npm run seed:run
In case of merge conflicts with package-lock.json
after pulling from the server, try resolving the conflicts, then run npm install --package-lock-only
to reconfigure package-lock.json
.