An open API service indexing awesome lists of open source software.

https://github.com/tungbq/my-blog


https://github.com/tungbq/my-blog

Last synced: 6 months ago
JSON representation

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`