- Notifications
You must be signed in to change notification settings - Fork0
tranthaison1231/typescript-graphql-postgres-boilerplate
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Make sure you haveDocker installed
Commands
To install the database management, run:
docker-compose up -d
To create database, run:
dockerexec -it todo psql -U postgres -c"create database todo"
.env file
- Create the
.envfile - Copy and parse the
connection informationbelow:
DB_USER=postgresDB_HOST=localhostDB_DATABASE=todoDB_PORT=54320
Open and run thedatabase/sql/database.sql by postgres tools (i.e.pgAdmin)
dump data
To initialize the dump data fortodo database, run:
npm run seed
To run development environment
npm run dev
To run production environment
npm start
About
No description, website, or topics provided.
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Languages
- TypeScript95.3%
- Dockerfile2.6%
- Shell2.1%