File tree Expand file tree Collapse file tree 2 files changed +11
-28
lines changed Expand file tree Collapse file tree 2 files changed +11
-28
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ LOGIN_CODE_SALT="algora-login-code"
6
6
LOCAL_STORE_TTL = 3600
7
7
LOCAL_STORE_SALT = " algora-local-store"
8
8
9
- DATABASE_URL = " postgresql://user:pass @localhost:5432/db "
9
+ DATABASE_URL = " postgresql://algora:password @localhost:5432/algora "
10
10
11
11
GITHUB_CLIENT_ID = " "
12
12
GITHUB_CLIENT_SECRET = " "
Original file line number Diff line number Diff line change @@ -130,19 +130,7 @@ To get a local copy up and running, follow these steps.
130
130
asdf install
131
131
```
132
132
133
- 3 . Fetch dependencies
134
-
135
- ``` sh
136
- mix deps.get
137
- ```
138
-
139
- 4 . Initialize your ` .env ` file
140
-
141
- ``` sh
142
- cp .env.example .env
143
- ```
144
-
145
- 5 . Create your database
133
+ 3 . Create a new PostgreSQL user
146
134
147
135
``` sh
148
136
sudo -u postgres psql
@@ -153,35 +141,30 @@ To get a local copy up and running, follow these steps.
153
141
ALTER USER algora WITH CREATEDB;
154
142
```
155
143
156
- 6 . Paste your connection string into your ` .env ` file
157
-
158
- ``` env
159
- DATABASE_URL="postgresql://algora:password@localhost:5432/console"
160
- ```
161
-
162
- 7 . Allow direnv to load the ` .env ` file
144
+ 4 . Initialize and load ` .env `
163
145
164
146
``` sh
147
+ cp .env.example .env
165
148
direnv allow .env
166
149
```
167
150
168
- 8 . Run migrations and seed your database
151
+ 5 . Install and setup dependencies
169
152
170
153
``` sh
171
- mix ecto. setup
154
+ mix setup
172
155
```
173
156
174
- 9 . Start your development server
157
+ 6 . Start your development server
175
158
176
159
``` sh
177
160
iex -S mix phx.server
178
161
```
179
162
180
- 10 . (Optional) Watch for file changes and auto reload IEx shell in a separate terminal
163
+ 7 . (Optional) Watch for file changes and auto reload IEx shell in a separate terminal
181
164
182
- ``` sh
183
- find lib/ | entr mix compile
184
- ```
165
+ ``` sh
166
+ find lib/ | entr mix compile
167
+ ```
185
168
186
169
### Setting up external services
187
170
You can’t perform that action at this time.
0 commit comments