-
Notifications
You must be signed in to change notification settings - Fork 61
How to run CoralTime
Step 1: Install Visual Studio 2017
Choose ASP.NET and wev development Workload
Step 2: Install NodeJS
Use LTS Version (example: C:\Program Files\nodejs)
Step 3: Clone Repository
git clone https://github.com/CoralTime/CoralTime.git
-
Open
Visual Studio: Tools -> Options -> Projects and Solutions -> Web Package Management -> External Web Tools
1.1. Put path where you install NodeJS (example: C:\Program Files\nodejs
)
1.2. Set this path to the first place in this list:
* A. Create New Path.
- B. Fill path where you install NodeJS (
example: C:\Program Files\nodejs
)
- C. Put up your row with NodeJS path at the first position by means of an arrow up
- B. Fill path where you install NodeJS (
-
Open
Visual Studio: Tools -> Extensions and Updates.
2.1. Install NPM Task Runner
-
Open Project in VS by next path:
\backend\CoralTime.sln
3.1.Solution Explorer -> package.json -> Task Runner Explorer.
3.2. Run ** 1_NpmInstall
** - Install NPM into local fronend folder;
3.3 Build Frontend: 2_BuildFrontEnd
- If all the scripts have successfully completed, you will see the next message «Process terminated with code 0.»
3.4. Set CoralTime as StartUp Project (instead default IIS Express)
-
Create CoralTime DB.
Uncomment string for create DB in Startup.cs and check DefaultConnection in appsettings.json.
Run Solution and wait for creation CoralTime Database and check it!
2.** Create CoralTimeTest DB.**
Change DefaultConnection in appsettings.json and in the Solution.
Restart Solution and wait for creation CoralTimeTest database and check it!
3.** Working Setting**
Stop Solution.
Comment string for create DB in Startup.cs and set DefaultConnection and TestConnection in appsettings.json.
Before Solution fully running, you should check the CoralTime.Tests.
Try to run Tests by TextExplorer and check results. Test results must be successfully.
About Tests:
- «TestMethodNonAuth» try to check ping to your CoralTimeTests Db.
- «TestMethodAuth» try to compare count of Members in the CoralTimeTests Db in table Members and your test custom value (2).
*If you create database by next settings from defaultDBData.json:
That you have next values in your CoralTime.Tests Db in Members table:
- Run Solution and try to login using Login/Password for your User from defaultDBData.json:
- If your login is successful, you can add your first TimeEntry!
- After successful adding, you can see: