drive-server
drive-server copied to clipboard
Drive Server
Prerrequisites
-
Node v10
nvm install v10(Cannot be upgraded to higher version until node-lib bindings fixed).
-
Yarn
npm i -g yarn -
PM2
npm i -g pm2 -
Node-gyp essentials
Ubuntu:
sudo apt install python build-essentialWindows:
npm i -g windows-build-toolsMac:
xcode-select --install
Install
- Create a
.npmrcfile from the.npmrc.templateexample provided in the repo. - Replace
TOKENwith your own Github Personal Access Token withread:packagespermission ONLY - Use
yarnto install project dependencies.
Database setup (MariaDB)
Create schema and configure config/environments/development.json
Run yarn run migrate to create tables.
Start app
Run yarn start to start server in production mode.
Run yarn run dev to start with nodemon and development environment.