- Replace
$YOUR_PROJECT_ORIGINbelow 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.jsonandappsettings.Development.json(minimum is database connection string) -
In
/ToolkitBoilerplate, run
dotnet ef migrations add Init
&& dotnet ef database update- Start development
- To push local
mastertooriginremote (project-specific remote):git push origin master - To pull
boilerplateremote to localmaster:git pull boilerplate master
- To push local
- In VisualStudio
- Rename project
- Rename solution
- Rename namespace
- Open up
/ClientApp/project.json- Rename
namekey
- Rename
- Open up
/ClientApp/public/manifest.json- Rename
nameandshort_namekeys
- 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 runto start backend on port 5000npm run serve --prefix ClientAppto 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/swaggerto 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
-
ApplicationHubboilerplate - Deployment plan and instructions