The objective of this project is to create an application to manage Refera's maintenance orders
Here are the technologies used in this project.
- Nodejs
- Mongo Atlas
- Nextjs
- TypeScript
- TDD
- Styled-Components
- SOLID
- Github
- MongoDb Atlas
The project contains two folders, one on the front and one on the back.
To run the back:
$ cd refera-back
$ npm i || yarn add
$ npm dev || yarn dev
To run the back:
$ cd refera-front
$ npm i || yarn add
$ npm dev || yarn dev
Open http://localhost:3000 with your browser to see the result.
The main features of the application are:
- View Registered Orders.
- Register New Order
How would I structure the database for Real Estate?
I would create an entity called entity
and another typeEntity
, to store the data of both the company and the real estate company. What would distinguish one from the other would be the typeEntity (which would contain the values Real Estate
and Company
)
To save its contacts, it created two new entities contact
and contact
type).
Contact type would be email
, phone
, and the contact would contain information related to the type.
Given the case that an entity (company or real estate) may have more than one contact, a new table would appear, which would contain the id of the entity and the contact.
- Pagination
- Authentication
- More test coverage (TDD)
- Documentation (with Swagger)
- Authentication
- Filters in the order listing
- Input for order search
- Modal to view order details
- More test coverage (TDD)
-
Integrate with NextAuth && OAuth2.0 for authentication with social networks.
-
Generate token on login (JWT).
-
Intercept the token in the header of all requests, if already authenticated.
- José Gonçalves