Navigation Menu

Skip to content

ParalelnaPolisKE/paralelnapoliskosice.sk

Repository files navigation

Paralelná Polis Košice

logo

English | Slovensky


Netlify Status PRs Welcome tippin

Writing a post

Blog posts are located in ./src/pages/blog directory and are written in Markdown syntax.

To add/edit a post

  • 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

Development

Prerequisities

Installation

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).

Environment Variables in .env

Variable Name Required Default Value Description
FACEBOOK_ACCESS_TOKEN Yes null Access token for an facebook account

Start Website Locally

In the project directory, just run:

npm start

Available Commands

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

Coding Standards

Please, keep the coding standards defined by EditorConfig and those handled with Prettier - npm run format could be used to format the code automatically.

VS Code

You can install couple of recommended extensions that may help you with the development.