Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Duc Nguyen
Duc Nguyen

Posted on • Edited on

     

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

Top comments(2)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
webdeasy profile image
webdeasy.de
On this profile I publish the best posts from my blog: webdeasy.de
  • Location
    Germany
  • Joined

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

CollapseExpand
 
vanduc1102 profile image
Duc Nguyen
All levels at https://coinconket.com/
  • Location
    Ho Chi Minh, Viet Nam
  • Education
    Ho Chi Minh City University of Technology
  • Work
    Software Engineer at Wizeline VietNam
  • Joined

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

All levels at https://coinconket.com/
  • Location
    Ho Chi Minh, Viet Nam
  • Education
    Ho Chi Minh City University of Technology
  • Work
    Software Engineer at Wizeline VietNam
  • Joined

More fromDuc Nguyen

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp