- Replace
$YOUR_PROJECT_ORIGIN
below with your new project's origin and run
git clone https://github.com/Biarity/ToolkitBoilerplate.git .
&& git remote rm origin
&& git remote add boilerplate https://github.com/Biarity/ToolkitBoilerplate.git
&& git config remote.boilerplate.pushurl "(do not push to boilerplate)"
&& git remote add origin $YOUR_PROJECT_ORIGIN
&& cd ToolkitBoilerplate
&& dotnet restore
&& dotnet ef migrations add Init
&& cd ClientApp
&& npm install
-
In
/ToolkitBoilerplate
, updateappsettings.json
andappsettings.Development.json
(minimum is database connection string) -
In
/ToolkitBoilerplate
, run
dotnet ef migrations add Init
&& dotnet ef database update
- Start development
- To push local
master
toorigin
remote (project-specific remote):git push origin master
- To pull
boilerplate
remote to localmaster
:git pull boilerplate master
- To push local
- In VisualStudio
- Rename project
- Rename solution
- Rename namespace
- Open up
/ClientApp/project.json
- Rename
name
key
- Rename
- Open up
/ClientApp/public/manifest.json
- Rename
name
andshort_name
keys
- Rename
- Open up
STATR_DEV.bat
- Rename cd line to project name
Open START_DEV.bat
.
If using Visual Studio, will need to also run npm run start
in /ToolkitBoilerplate/ClientApp
.
Manually:
dotnet watch run
to start backend on port 5000npm run serve --prefix ClientApp
to start frontend on port 8080- Note in dev backend reverse proxies frontend so no need to got to port 8080
- To debug API use http://localhost:5000/swagger
- Add entities (should be subclasses of
ApplicationEntity
) - Create migrations & update database (
Add-Migration Init; Update-Database
) - Create controllers for each entity (should be subclasses of
ApplicationController
, can use/swagger
to debug) - Start on frontend
- Build frontend
- Build backend
- Docker?
- TODO
- Vue boilerplate for login, flags, alerts, comments, notifications
- Controllers and entities for boilerplate for comments, reactions, notifications, flagging
-
ApplicationHub
boilerplate - Deployment plan and instructions