Skip to content

masadamsahid/nodejs-expres-book-app

Repository files navigation

moa9-final-project

Before running this project:

  1. Install Dependecies

    npm install

    or

    yarn
  2. Create and configure the .env file. Example:

    PORT=3000
    DATABASE_URL="mysql://<username>:<yourpassword>@localhost:3306/buku_db"
    HASH_SALT=10

    Or just copy the .env.example file, then rename it to .env and configure it.

  3. Run DB migration using prisma migration

npx prisma migrate deploy

Running the project

Production mode

To run in the production mode you have to build the project first, then run the start script:

npm run build
npm run start

Development mode

Or you can run the project in development mode by using the build-w script and dev script

npm run build-w

then in other cli

npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published