https://github.com/tungbq/my-blog
https://github.com/tungbq/my-blog
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tungbq/my-blog
- Owner: tungbq
- Created: 2021-10-31T10:31:12.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-06T11:31:52.000Z (almost 4 years ago)
- Last Synced: 2025-04-06T05:57:40.888Z (7 months ago)
- Language: JavaScript
- Size: 227 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# my-blog
# Start postgres docker
`docker compose up -d`
# Dive into docker container
`docker exec -it postgres_node_blog bash`
# Login to postgres
`psql -U postgres`
# Create new database`CREATE DATABASE blogs;`
# Choose new created database
`\c blogs; `# Now create table by executing commands in our [schema](./utils/schema.sql)
# Check again
`\dt;`
## To check table
`\d users;`# Use express generator to create or server
https://www.section.io/engineering-education/nodejs-app-express-generator# Start server
`cd server && npm run dev`