A prototype data management system for machine learning
- Protect API Routes
- Update front landing page
git clone https://github.com/zwerb/dms-bp.git
cd dms-bp
npm install
- Postgres: start Postgres Docker or install Postgres local
export MY_APP_NAME=dms-bp
createdb $MY_APP_NAME
createdb $MY_APP_NAME-test
psql -c 'create database "dms-bp";' -U $USER postgres
- Create a file
secrets.js
in the project roottouch secrets.js
- In secrets.js:
process.env.GOOGLE_CLIENT_ID = 'hush hush'
process.env.GOOGLE_CLIENT_SECRET = 'pretty secret'
process.env.GOOGLE_CALLBACK = '/auth/google/callback'
- current linter:
eslint-config-fullstack
) - to adjust, edit:
.eslintrc.json
Running:
npm run start-dev
Or run wepack and server, separately:npm run build-client
npm run start-server
- Edit script in
bash/deploy
- To run the script:
git branch -d deploy
npm run deploy
Husky is installed to apply hooks to git
-
before commit is executed, husky will run all scripts in:
- client/.spec
- server/.spec
- script/.spec
-
this can be edited in
.git/
hooks