Comments (8)
Hi @tgiardina I want to work on this
from typescript-typeorm-realworld-example-app.
@kunwar97 Excellent, it's all yours! I think TypeOrm will do most of the work for you. The roadmap probably looks something like:
- Delete
services/user
. - Refactor
controllers/user
to useIUserRepository
instead ofIUserService
. - Refactor
loaders/container
as appropriate.
Let me know if you have any questions!
from typescript-typeorm-realworld-example-app.
Sure
from typescript-typeorm-realworld-example-app.
@tgiardina What about tests in services/user. Should I delete them or move them to another folder?
from typescript-typeorm-realworld-example-app.
@kunwar97 I think it's fine if you delete them. TypeORM should do everything for you, and there's no need to test that their save
and findOne
methods are working correctly.
Feel free to get rid of result
and all references to it too. I added it as a helper because I was used to Rust, but it's just making the code more complicated at this point.
from typescript-typeorm-realworld-example-app.
from typescript-typeorm-realworld-example-app.
@kunwar97 Thanks! I'll check it out later today!
from typescript-typeorm-realworld-example-app.
#30 resolved this issue.
from typescript-typeorm-realworld-example-app.
Related Issues (15)
- Impl JWT authorization for POST users
- Too many assertions are lumped together in services/users tests
- The architecure is too complicated for a Real World example app.
- Merge services and repositories HOT 1
- Create an error type to keep errors consistent across repositories and services HOT 1
- Complete user table and model HOT 1
- Refactor Interfaces HOT 1
- Where do DTOs belong?
- Add tsconfig.json HOT 3
- Is it worth demoing a package that might be dying?
- Middleware should handle req.body validation HOT 3
- Provide resources to help users rebuild this API
- Handle authentication HOT 2
- Impl a GET user endpoint
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typescript-typeorm-realworld-example-app.