Mentorapp.Umbrella
Installation Guide
-
Enter into our mentorapp_web
cd ./apps/mentorapp_web
-
Get our deps
mix deps.get
npm install --prefix assets
-
Create DB and setup migration
mix ecto.create && mix ecto.migrate
-
Create a
.env
file in the root foldapps/mentorapp_web/.env
-
Create an github app and retreive your client_id and client_secret a. Visit
https://github.com/settings/developers
b. Click onnew OAuth app
and enter the following informationApplication name: Mentorapp - Local
Homepage URL - http://localhost:4000
Authorization callback URL - http://localhost:4000/auth/github/callback
c. Once created, grab yourClient ID
andClient Secret
-
Add 4c information into to the
.env
like so
export GITHUB_CLIENT_ID="somethingclientid"
export GITHUB_CLIENT_SECRET="1231312331231231212312"
- Generate a secret base and add it to
.env
mix phx.gen.secret
LAgNrezvWW2R3Ak9wBOqk1Fgimmvfgt2BjYUZyjeYxwYoIVzy+MtacdnMfR200UK
apps/mentorapp_web/.env
export GITHUB_CLIENT_ID="somethingclientid"
export GITHUB_CLIENT_SECRET="1231312331231231212312"
export SECRET_KEY_BASE="LAgNrezvWW2R3Ak9wBOqk1Fgimmvfgt2BjYUZyjeYxwYoIVzy+MtacdnMfR200UK"
- Once that's done ran the following command whenver
.env
changes or reboot. Big thanks to DarckBlezzer
source .env && iex -S mix phx.server