Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.

tuananhlai/remind_clone_web_server

Repository files navigation

Remind Clone Web Server

Start development server

npm run dev

Start development server (debugging)

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

Building the database in local MySQL Server

  1. Create remind_clone database in your local MySQL Server by running CREATE DATABASE remind_clone;.

  2. 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
  1. 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.

Add placeholder data

npm run seed:run

Troubleshooting

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.

About

Remind Clone app's backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages