Skip to content

Commit 20c1a6b

Browse files
committed
feat(project): update readme and update local db name
1 parent faacec5 commit 20c1a6b

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

README.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,19 @@
3434
- `psql postgres -U admin`
3535

3636
- Type this command to creating a new database.
37-
- `postgres=> CREATE DATABASE sing_app_db;`
37+
- `postgres=> CREATE DATABASE nodejs_backend_db;`
3838

3939
- Then give that new user privileges to the new database then quit the `psql`.
40-
- `postgres=> GRANT ALL PRIVILEGES ON DATABASE sing_app_db TO admin;`
40+
- `postgres=> GRANT ALL PRIVILEGES ON DATABASE nodejs_backend_db TO admin;`
4141
- `postgres=> \q`
4242

4343
###### 4. Run db migrations and seeds:
44-
- `sequelize db:migrate && sequelize db:seed:all`
44+
- `sequelize db:migrate && sequelize db:seed:all`
45+
46+
------------
47+
48+
##### Start development build:
49+
- `yarn start:dev`
50+
51+
##### Start production build:
52+
- `yarn start`

src/db/db.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = {
22
development: {
33
"username": "admin",
44
"password": "admin_pass",
5-
"database": "sing_app_db",
5+
"database": "nodejs_backend_db",
66
"host": "127.0.0.1",
77
"dialect": "postgres"
88
},

0 commit comments

Comments
 (0)