Skip to content

jscoobyced/sawan.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI
codecov Quality Gate Code Smell
Docker Cloud Build Status

SAWAN.IO

Home of the https://sawan.io website.

Setup

Dependencies

You will need the following to be pre-installed on your machine:

  • dotnet core with SDK 2.2.x
  • docker

Application

In a CMD or TERMINAL window, follow those steps:

  • To prepare the client-side assets:
pushd ClientApp
yarn install
yarn webpack
popd
  • To run a mock version (and hot-reload)
pushd ClientApp
yarn dev-server

Then you can open a browser on http://localhost:9000 to browse the mocked application.

  • To build the dotnet core application
dotnet restore
dotnet build
  • Then to run it locally:
sudo ./scripts/docker/start-local.sh
dotnet run --project sawan

Then you can open your browser on http://localhost:5000 to browse the application.

Tests

  • To run the unit tests
dotnet test

Update - 2019-02-16

Moved to a docker environment. To run this website on production without downloading the whole repo:

wget https://raw.githubusercontent.com/jscoobyced/sawan.io/master/scripts/docker/start.sh -O start.sh
chmod u+x start.sh
GoogleSecret=123456789 JwtSecret="Your encryption key to secure JWT" ./start.sh

Note you might need to run as sudo if you haven't added your user to the docker group.

IMPORTANT NOTES: have a look at the above script and make sure you're happy with what it does.

Update - 2019-08-06

Moved CI to CircleCI. It's faster, using docker. I also needed to change the C# code coverage to AltCover because it supports linux. I will probably test Coverlet in some near future.