Skip to content

🗄 Say no to high time server processing for files. Direct upload to bucket!

Notifications You must be signed in to change notification settings

GoApptiv/file-management-nestjs

Repository files navigation

File Storage Service

File storage service is a Microservice build to securely store your files to the Google Cloud bucket.

Installation

File Storage Service is written in TypeScript and NodeJS, using MySQL as its primary database, make sure you have the necessary command lines tools installed for NestJS.

Please refer to NestJS CLI for more details

Follow the step to install the necessary modules for the project.

Step 1: Install Node Modules

npm install

Step 2: Create a build

npm run build

Step 3: Configure the environment file

Please refer to the .env.sample for sample file and create .env file with the necessary configuration.

Database Migration

File storage service uses MySQL database.

Run the following command to run migrations.

npm run migration:run

Run the following command to create new migrations.

npm run migration:generate --name=MigrationName

Usage

Run the following command to start the server.

npm run start