Home of the https://sawan.io website.
You will need the following to be pre-installed on your machine:
- dotnet core with SDK 2.2.x
- docker
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.
- To run the unit tests
dotnet test
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.
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.