DEV Community

Duc Nguyen
Duc Nguyen

Posted on • Edited on

2 3

Finally started Dev.to on my local

My background: working with Java, NodeJS and Frontend for some years and has no Rails experiences

Here are my summaries:

FROM node:8.15.1-alpine AS alpine-ruby-node
  • It took me an hour to figure out the Postgres role issue with my current OS username.

Here is how to solve:

https://www.codementor.io/engineerapart/getting-started-with-postgresql-on-mac-osx-are8jcopb#3-configuring-postgres

Login into postgres:

psql --user postgres --password

To list users:

postgres=# \du

To add a user:

postgres=# CREATE ROLE my_current_OS_user WITH LOGIN PASSWORD 'Pa$$w0rd'; 

And grant createDB privilege:

ALTER ROLE my_current_OS_user CREATEDB
  • Register Github Oauth

HomePage URL: http://localhost:3000

Authorization callback URL: http://localhost:3000/users/auth/github/callback

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (2)

Collapse
 
vanduc1102 profile image
Duc Nguyen

My first PR in RnR: haha
github.com/thepracticaldev/dev.to/...

Collapse
 
webdeasy profile image
webdeasy.de

Haha, cool idea! I should try that, too. I have also no experience with rails, I'll have a look! :)

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay