This is our project for "Wep application Document Management System" (Code subject: SWP391)
Client: Vite, Material UI, Firebase, Vercel
Server: Node, Express, TypeORM, PostgreSQL, Firebase, Google Cloud Platform
To run this project, you will need to add the following environment variables to your .env file
PORT
DB_HOST
DB_PORT
DB_USERNAME
DB_PASSWORD
DB_NAME
- Clone the project
git clone https://github.com/DaiNghia0212/DocManagementSystemServer.git
- Go to the project directory
cd DocManagementSystemServer
-
Put into the project directory adminSDK service account file of Firebase and service account file of Google Cloud
-
Install Cloud SQL Proxy
curl https://storage.googleapis.com/cloud-sql-connectors/cloud-sql-proxy/v2.1.1/cloud-sql-proxy.x64.exe -o cloud-sql-proxy.exe
- Run Cloud SQL Proxy
./cloud-sql-proxy --credentials-file PATH_TO_GOOGLE_CLOUD_SERVICE_ACOUNT_FILE INSTANCE_CONNECTION_NAME &
-
Set up Environment Variables
-
Install dependencies
npm install
- Build the project
npm run build
- Start the server
- Development mode
npm run dev
- Production mode
npm run start