change database name

This commit is contained in:
Bilal Catic
2019-05-23 18:58:17 +02:00
parent c7c7957c8a
commit 2ff4e4ae8a
3 changed files with 11 additions and 7 deletions

View File

@@ -7,15 +7,19 @@ Integrate and customize CRM and ERP used by SimaSpace
1. Run setup script : `npm run setup`
This installs packages for server and client applications.
Then builds docker image for database and starts container.
Database name is `psychology`. Default username is `docker` and default password is `docker`.
Database name is `CrmIntegration`. Default username is `docker` and default password is `docker`.
NOTE : If migration fails, try executing migrations manually with `npm run migrate`
If everything works correctly, it is possible to connect to database with :
`psql -d psychology -p 5432 -U docker -h localhost`
`psql -d CrmIntegration -p 5432 -U docker -h localhost`
3. Start server : `npm run start-server`
4. Start client : `npm run start-client`
Open app on http://localhost:3000
#### Useful NPM scripts
There are few scripts to handle some operations faster, without copy-pasting commands to terminal