Skip to content

zero-filtre/zerofiltre-blog

Repository files navigation

zerofiltreBlog

This project was generated with Angular CLI version 13.

Setup and Install dependencies

Run the following in a terminal

git clone https://github.com/zero-filtre/zerofiltre-blog.git
cd zerofiltre-blog
npm install

Run Development server

Create a file environment.locals.ts in /src/environments/ and add your local variables inside.

export const environment = {
  production: false,
  apiBaseUrl: "https://blog-api-dev.zerofiltre.tech",
  blogUrl: "https://blog-dev.zerofiltre.tech",
  ovhServerUrl:
    "https://storage.gra.cloud.ovh.net/v1/AUTH_5159edadfde2413fb43128c1fef06fbf/zerofiltre-object-container",
  ovhTokenUrl: "https://auth.cloud.ovh.net/v3/auth/tokens?nocatalog",
  GITHUB_CLIENT_ID: "",
  STACK_OVERFLOW_CLIENT_ID: "",
  gitHubRedirectURL: "",
  stackOverflowRedirectURL: "",
  ovhAuthName: "",
};

Run ng serve for a client-side dev server.
Run npm run dev:ssr for a server-side dev server.
Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Run Development JSON server

Run the following

mpm install -g json-server
npm run json:server

Build

Run ng build to build the client-side project bundle. The build artifacts will be stored in the dist/ directory.

Run npm run build:ssr to build the server-side project bundle. The build artifacts will be stored in the dist/ directory.
Run npm run serve:ssr and navigate to http://localhost:4000/ to browse the app.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running End 2 End tests

Run npm run nw to launch e2e test

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.