Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore (#19): updates project readme #33

Merged
merged 7 commits into from
Apr 6, 2022
Merged

chore (#19): updates project readme #33

merged 7 commits into from
Apr 6, 2022

Conversation

tzmanics
Copy link
Contributor

closes #19

@tzmanics tzmanics added the documentation Improvements or additions to documentation label Mar 23, 2022
@tzmanics tzmanics self-assigned this Mar 23, 2022
@netlify
Copy link

netlify bot commented Mar 23, 2022

Deploy Preview for kpop-stack ready!

Name Link
🔨 Latest commit dbdaef2
🔍 Latest deploy log https://app.netlify.com/sites/kpop-stack/deploys/624dcf4c99d90d000915ff51
😎 Deploy Preview https://deploy-preview-33--kpop-stack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@tzmanics tzmanics force-pushed the tzm/19/createReadme branch 2 times, most recently from 89e50d0 to f9c297d Compare April 2, 2022 02:42
@tzmanics tzmanics marked this pull request as ready for review April 4, 2022 17:07
@tzmanics
Copy link
Contributor Author

tzmanics commented Apr 5, 2022

@bencodezen & @maxcell: let me know what you think of the updates to the dev section and how we're listing the env vars now. also, should I add DATABASE_URL and SESSION_SECRET to the .env.sample file.

@maxcell I couldn't figure out where to find SESSION_SECRET, could you let me know when you get a chance? ty!

@maxcell
Copy link
Contributor

maxcell commented Apr 5, 2022

@tzmanics: Yeah you don't need to add DATABASE_URL but we do need SESSION_SECRET (though that should be in the main branch already). This should be something that the user sets.

If they use the remix template flow npx create-remix --template remix-run/kpop-stack this should be done for them that's part of what the remix.init/index.js does in these lines.


If we wanted to use our secret, we would need to export it from Netlify. If you wanted to set your own, you could make it any string in a .env file. But the session secret can be whatever value we want it to be.

Copy link
Contributor

@maxcell maxcell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have just a few notes. I don't think anything is actually a blocker in terms of we need to uproot so :shipit: I think the biggest thing (which really is just like dust) might be us deciding on if it is important to us to have them set the SESSION_SECRET in our .env

README.md Outdated
Comment on lines 53 to 59
<details>
<summary>Environment Variable list in project dashboard.</summary>

![screenshot of env vars in Netlify UI](https://res.cloudinary.com/dzkoxrsdj/image/upload/v1649190710/Screen_Shot_2022-04-05_at_4.31.09_PM_m4rmer.jpg)

</details>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for bringing this up earlier, I think having a screenshot like this is valuable! I would probably say that updating it without the DATABASE_URL to avoid the confusion

README.md Outdated
Comment on lines 46 to 52
- Add your Supabase environment variables to a `.env` file like [`.env.sample`](./.env.sample) file or through the Netlify project dashboard at [https://app.netlify.com/](https://app.netlify.com/) Site settings/Build & deploy/Environment:

```
SUPABASE_URL=""
SUPABASE_ANON_KEY=""
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly we probably want to share that they need to create their SESSION_SECRET as well, I have no good strategy for that though outside of the remix workflow. 😅 I don't mind pointing them to something like this password generator tool from 1Password https://1password.com/password-generator/

README.md Outdated

### Relevant code:

This is a pretty simple note-taking app, but it's a good example of how you can build a full stack app with Architect and Remix. The main functionality is creating users, logging in and out, and creating and deleting notes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This is a pretty simple note-taking app, but it's a good example of how you can build a full stack app with Architect and Remix. The main functionality is creating users, logging in and out, and creating and deleting notes.
This is a pretty simple note-taking app, but it's a good example of how you can build a full stack app with Supabase and Remix. The main functionality is creating users, logging in and out, and creating and deleting notes.

README.md Outdated
netlify init # initialize a new Netlify project & deploy
```

One the CLI is installed you can also create a site using the `sites:create-template` command:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
One the CLI is installed you can also create a site using the `sites:create-template` command:
Or with the CLI is installed, you can also create a site using the `sites:create-template` command:

README.md Outdated

Using the 'Deploy to Netlify' button or the `init` process will also set up continuous deployment for your project so that a new build will be triggered & deployed when you push code to the repo (you can change this from your project dashboard: Site Settings/Build & deploy/Continuous Deployment).

You can also use `netlify deploy (--prod)` to manually deploy and `netlify open` to open your project dashboard.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think separating these might help tell the story a bit more! I think if I hadn't seen Netlify's CLI I might assume I am to put the parenthesis around the flag.

Suggested change
You can also use `netlify deploy (--prod)` to manually deploy and `netlify open` to open your project dashboard.
You can also use `netlify deploy` or `netlify deploy --prod` to manually deploy and `netlify open` to open your project dashboard.

```sh
npm i -g netlify-cli
```
npx create-remix --template remix-run/kpop-stack
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
npx create-remix --template remix-run/kpop-stack
npx create-remix --template netlify-templates/kpop-stack

Copy link
Collaborator

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great!

Would be good to put some mention of the steps you need to complete in the log of the remix.init script so people know they can't just run the build/dev but they need to set some environment variables and things first.

Looking great though!

@tzmanics tzmanics merged commit f07f01e into main Apr 6, 2022
@tzmanics tzmanics deleted the tzm/19/createReadme branch April 6, 2022 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a README following the example of other stacks
4 participants