English | Slovensky
Blog posts are located in ./src/pages/blog
directory and are written in Markdown syntax.
- create a new pull request containing your updates
- if you have write access to the repository you can log in to admin and edit posts comfortably trough Netlify CMS
- you need node with npm (node package manager) installed to be able to build and run website locally on you computer. Let's stick with LTS (Long Term Support) version.
- git is needed to commit new changes; you can find also some GUI clients that may help you with that.
- create a new SSH key and associate it with your GitHub account
- how to work with git? Check the simple guide - no deep shit!
- work with your favourite text editor (humbly recommending vscode)
In the command line (Terminal on Linux/Mac, Command Prompt on Windows) run:
git clone git@github.com:ParalelnaPolisKE/paralelnapoliskosice.sk.git
cd paralelnapoliskosice.sk
npm install
Copy .env.example
file into .env
(with the dot at the beginning in the name) and set correct constants inside (or leave them blank).
Variable Name | Required | Default Value | Description |
---|---|---|---|
FACEBOOK_ACCESS_TOKEN |
Yes | null |
Access token for an facebook account |
In the project directory, just run:
npm start
npm run ... |
Description |
---|---|
npm start |
runs local development server at localhost:8000 |
npm run build |
builds production-ready site |
npm run format |
corrects coding standards |
npm run serve |
starts local server suitable for testing |
Please, keep the coding standards defined by EditorConfig and those handled with Prettier - npm run format
could be used to format the code automatically.
You can install couple of recommended extensions that may help you with the development.