Getting started

In this course, we will be using Git together with GitLab for version handling and submitting our code. This will have some implications on your setup.

Git and GitLab

First, start looking at this new guide to Git. Focus on step 12 since we will be using ssh instead of HTTP to communicate to GitLab.

1. https://gitlab.lnu.se/instructions/get-started/blob/master/git.md#step-12-add-ssh

Depending on your setup you might need to change your local git configuration. (or not if it is already setup with your student email)

2. https://gitlab.lnu.se/instructions/get-started/blob/master/multiple-git-users.md

Now you can start working with assignments and exercises.

3. https://gitlab.lnu.se/instructions/get-started/blob/master/get-started-with-an-assignment.md

And after that, here is your daily workflow:

4. https://gitlab.lnu.se/instructions/get-started/blob/master/work-with-an-assignment.md

Linting your code

We are changing from using Standard.js for linting to using ESLint with the standard.js plugin. To properly lint your code to match the CodeGrade-setup please make sure to:

1. After you have created you package.json (npm init) please run:

npx install-peerdeps --dev @lnu/eslint-config

2. Then make sure to add the following to your package.json:

"eslintConfig": {
    "extends": "@lnu"
  }

3. You can now lint your code using npm-script:

"lint": "npx eslint . || exit 0"

or by using the command:

npx eslint .

Make sure to have a compatible ESlint-plugin installed in your IDE. We recommend:

4.  dbaeumer.vscode-eslint

A plugin for JSDoc could also be usful

5. joelday.docthis

IDE

In the code we recommend using
1. Visual Studio code

Application environment

1. Install the “Current” version of Node.js from https://nodejs.org/en/

Välkommen till CoursePress

en utav Linnéuniversitets lärplattformar. Som inloggad student kan du kommunicera, hålla koll på dina kurser och mycket mer. Du som är gäst kan nå de flesta kurser och dess innehåll utan att logga in.

Läs mer lärplattformar vid Linnéuniversitetet

Studentkonto

För att logga in behöver du ett studentkonto vid Linnéuniversitet.

Läs mer om att hämta ut studentkonto

Inloggning LNU