All Projects → capesean → codegenerator

capesean / codegenerator

Licence: MIT license
Generate EF6 WebApi with an AngularJS font-end

Programming Languages

javascript
184084 projects - #8 most used programming language
C#
18002 projects
CSS
56736 projects
HTML
75241 projects
typescript
32286 projects
SCSS
7915 projects

Projects that are alternatives of or similar to codegenerator

Active Directory B2c Dotnet Webapp And Webapi
A combined sample for a .NET web application that calls a .NET Web API, both secured using Azure AD B2C
Stars: ✭ 166 (+1409.09%)
Mutual labels:  asp-net, webapi
BlipDrop
ASP.NET MVC case study solution for PluralSight Guides. Demonstrates how to use populate dropdown lists in Razor views.
Stars: ✭ 40 (+263.64%)
Mutual labels:  entity-framework, asp-net
Beef
Business Entity Execution Framework
Stars: ✭ 95 (+763.64%)
Mutual labels:  entity-framework, webapi
Xclcms
XCLCMS is a lightweight CMS (content management system) background management system, Developed using asp.net MVC, it provides a simple and easy-to-use web API interface and supports multiple applications for a single merchant.
Stars: ✭ 107 (+872.73%)
Mutual labels:  asp-net, webapi
Dotnetlabs
.NET Labs -- Show Me the Tips and Tricks and Code
Stars: ✭ 135 (+1127.27%)
Mutual labels:  entity-framework, webapi
Huxley
JSON proxy for the UK National Rail Live Departure Board SOAP API
Stars: ✭ 123 (+1018.18%)
Mutual labels:  asp-net, webapi
BlipBinding
ASP.NET MVC case study solution for PluralSight Guides. Demonstrates how to use default MVC model binding with hierarchical form data.
Stars: ✭ 29 (+163.64%)
Mutual labels:  entity-framework, asp-net
DotNETCarRental
Daily car rental simulation with ASP.NET.
Stars: ✭ 13 (+18.18%)
Mutual labels:  asp-net, webapi
Audit.net
An extensible framework to audit executing operations in .NET and .NET Core.
Stars: ✭ 1,647 (+14872.73%)
Mutual labels:  entity-framework, webapi
Aspnetcore Ddd
Full ASP.NET Core 3.1 LTS application with DDD, CQRS and Event Sourcing
Stars: ✭ 88 (+700%)
Mutual labels:  entity-framework, webapi
Dbwebapi
(Migrated from CodePlex) DbWebApi is a .Net library that implement an entirely generic Web API (RESTful) for HTTP clients to call database (Oracle & SQL Server) stored procedures or functions in a managed way out-of-the-box without any configuration or coding.
Stars: ✭ 84 (+663.64%)
Mutual labels:  asp-net, webapi
Goldeneye
The CQRS flavoured framework that will speed up your WebAPI and Microservices development
Stars: ✭ 171 (+1454.55%)
Mutual labels:  entity-framework, webapi
Ps Webapi
(Migrated from CodePlex) Let PowerShell Script serve or command-line process as WebAPI. PSWebApi is a simple library for building ASP.NET Web APIs (RESTful Services) by PowerShell Scripts or batch/executable files out of the box.
Stars: ✭ 24 (+118.18%)
Mutual labels:  asp-net, webapi
Webapiclientgen
Strongly Typed Client API Generators generate strongly typed client APIs in C# .NET and in TypeScript for jQuery and Angular 2+ from ASP.NET Web API and .NET Core Web API
Stars: ✭ 134 (+1118.18%)
Mutual labels:  asp-net, webapi
Mytested.webapi
Fluent testing framework for ASP.NET Web API 2.
Stars: ✭ 719 (+6436.36%)
Mutual labels:  asp-net, webapi
Beetle.js
🪲 Javascript ORM, manage your data easily.
Stars: ✭ 53 (+381.82%)
Mutual labels:  entity-framework, webapi
TraceHub
Centralized and distributed logging for Web applications and services, extending System.Diagnostics and Essential.Diagnostics, providing structured tracing and logging withou needing to change 1 line of your application codes
Stars: ✭ 22 (+100%)
Mutual labels:  asp-net, webapi
GPONMonitor
GPON Monitoring tool for Dasan Networks GPON OLTs
Stars: ✭ 26 (+136.36%)
Mutual labels:  asp-net, webapi
Abp Asp.net Boilerplate Project Cms
ABP module-zero +AdminLTE+Bootstrap Table+jQuery+Redis + sql server+quartz+hangfire权限管理系统
Stars: ✭ 677 (+6054.55%)
Mutual labels:  entity-framework, webapi
Devicemanager.api
Web API Framework demonstrates scalable, multitenant, architecture and allows building its own solution in the minutes. Uses: Entity Framework, UnitOfWork, Repository patterns. Wrapped in Docker, Kubernetes
Stars: ✭ 168 (+1427.27%)
Mutual labels:  entity-framework, webapi

LATEST FOR VERSION see: https://github.com/capesean/codegenerator3

codegenerator

Generate code for an Entity Framework 6 / WebApi, with an AngularJS font-end, using Bootstrap 3 or 4.

Online demo!

A demo of this system is available online at: http://codegenerator.sitedemo.co.za/

You can log into the demo, create your own projects, with entities, fields, relationships, lookups, etc. Then you can view the code that gets generated. It can generate:

  • Model: tied into the EF6 DbContext, so EF will generate & update your tables automatically!
  • DTO: The WebApi will use the DTO to safely export & import data.
  • Controller: A fully fledged WebApi controller with methods like Search/Query, Get, Insert, Update, Delete, Sort, etc.
  • DbContext: codegenerator will link your entities into the DbContext, as well as use the Fluent API for field definitions where attributes are not enough (e.g. decimal precision)
  • SettingsDTO: your enums and general application settings get sent to the AngularJs client on login using a Settings DTO.
  • BundleConfig: codegenerator will automatically add the necessary files to the bundles, so you just have to rebuild after adding an entity, and your project will include the relevant javascript files!
  • Enums: Create enums via codegenerator, which can be used as fields in your tables/entities.
  • AppRouter: Your entities will get added to the AngularJs router, using $stateProvider.
  • ApiResource: each entity gets added as an $resource factory in your app, so you can easily access the API by just injecting the appropriate resource.
  • List Html: codegenerator will produce a search page for the records in your table.
  • List TypeScript: you'll also get the TypeScript file that has the controller for the List Html page.
  • Edit Html: codegenerator will produce an edit page for adding/editing/deleting a record in your database.
  • Edit TypeScript: you'll also get the TypeScript file with the controller for the Edit page.

That just begins to scratch the surface! You can also have lookups, relationships, hierarchies, sort orders, Min/Max lengths on fields, define unique constraints, primary keys, search fields, field behavious (read only/edit-when-new/etc), Code Replacements (which can modify the generated code, so your customised changes are retained), and much more!

If it's running on your own machine, you can deploy the code to your project at the click of a button!

Blog post

There's a (slightly) old blogpost here, that describes the system in a bit more detail: http://capesean.co.za/blog/angularjs-typescipt-webapi-entity-framework-code-generation/

Latest 'project shell'

Note that, to run properly as a project/website, the generated code requires a 'project shell' with the surrounding controllers, stylesheets, directives, packages, etc.

The codegenerator project itself mostly contains these files, as it's (generated by the tool itself)[http://knowyourmeme.com/memes/we-need-to-go-deeper].

However, I don't keep codegenerator's project files fully up to date (I'm not sure how many people are interested in it?), so I just use codegenerator to generate the code to use in other, up-to-date 'project shells'.

If you're interested in using this tool, get in touch with me, and I can provide you with the latest shell. I'm constantly adding new features (like the 'Use Selector Directive' on the Relationships). That feature doesn't exist in the CodeGenerator shell, but I now use it extensively in other projects.

So if you're interested, get in touch via Github or (Twitter)[https://twitter.com/capesean]. I'd love to know that someone else is interested in using this highly-productive tool!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].