-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Track 2/8] Project Setup #3
Comments
Finish |
Step 2/6 - Create a simple Hello WorldEstimated time: 3 hoursFollow a tutorial project to create a minimal "Hello World" application using the technology stack you were assigned. If you don't know on which tech stack you are, please ask your tutor before continuing. We use react for web projects and react-native for mobile apps, both using Typescript. For both react and react-native, there are two options that you can use: with or without a framework. The initial documentation from react-native explores a little the differences of using and not using a framework. For you, using it or don't depends on the project you're working after the onboard. So, in case you don't know if you should use a framwork or not, ask your tutors.
|
Finish |
Step 3/6 - Formatting code and conventionsEstimated time: 2 hoursSo, now that you have properly setup and run your project, let's talk about some nice tools that we use to format our code and also some conventions we have. These are very important subjects when we work as a team, making our work of reading and contributing on projects much easier. For this task, you are supposed to apply the following conventions on the basic app that you've created on the last step (rename some files and make sure that most of the files are following prettier and lint rules). LintLint is a very powerful tool to inspect code and warn about some possible mistakes. Lints use to be more language-specific. In our projects, we use eslint. Eslint is a Javascript linter, but sure we have some additional support for Typescript feature too. You can follow this guide to configure eslint with Typescript. We recommend you install eslint VSCode extension, so the lint errors will be shown in real-time for you. PrettierPrettier is a tool that helps us formatting our code. It has a lot more options than editorconfig and language-specific formatting rules. They have a VSCode extension as well that makes possible to auto-format a file according to these rules. We highly recommend you install it, if it's not already installed in your pc. We generally use prettier in our projects as a plugin for eslint, so code styling becomes something like lint rules. To add prettier in your project as a eslint plugin, please follow this guide. This is the .prettierrc.js we use on our projects, in case you want to copy. ConventionsConventions are very important to maintain all projects code more readable for all developers and make the process of switching between projects less painful. We're going to list some of them here, but you will be learning and practicing them on code-reviews:
Add these tools on your project, check the code you have untill now to follow our conventions. Also, make sure that if you change something on code that generates a format or lint error, it's detected in real-time on the editor. Then, open a Pull Request. |
Finish |
Step 4/6 - Create a Pull Request
If you don't remember how to open a Pull Request, check out the references in the previous issues. Your PR should have This pull request will be reviewed by your Taqtile tutor and possibly by some other people. This process is called Code Review (CR). You can ask your tutor who will be revising your code. Mark them on every Pull Request as reviewers. Check here an example of Code Review. You'll possibly have some changes requested/suggested in order to merge your new branch on |
Finish |
Step 5/6 - Update README.mdEstimated time: 20 minutesDo you remember we created the Since the
After that, open a pull request with these TIP: an excellent README is that one document that is sufficient for any developer to be able to run and contribute to your project. |
Finish |
Step 6/6 - Rebasing your branchHere in Taqtile, before merging our revised (and approved) branches, we rebase this branch into the one we are attempting to merge. In this case, you'll rebase Too confusing? Here are some good links you can read about rebase: Note: Remember that if you are stuck in any of these topics, feel free to ask any Taqtiler. We are here to help 😉 The ideal setup we are trying to achieve with the rebases are something like this: |
Finish |
Click here for your next track |
Step 1/6 - Create a git branch
feature/setup
If you don't remember how to create a branch, check the references in the previous issues.
Note: From here, the issues will contain fewer tutorials and step-by-step guides. However, it doesn't mean you won't be able to ask. You can always ask anything to any Taqtiler. We are here to help 😉
Note 2: Be patient, this is the last setup before coding. 👍
The text was updated successfully, but these errors were encountered: