Project starts from the selection process for vacancy.
Instructions for execution.
The API Web directly uses the infrastructure layer, which performs access to the database; This layer is configured to use a connection string called AppConnection ;
To configure the connection string in the project. Just add the key below to the Web.config :
<connectionStrings>
<add name="AppConnection" connectionString="Sua string de conexão aqui" providerName="System.Data.SqlClient" />
</connectionStrings>
The API is published in Port 55751.
Web Forms and MVC applications connect directly with the API through the Cartaotodos.REST Library, which is the library responsible for making the requests for the API.
For access, simply configure a switch with API_ENDPOINT name in the appSettings section on the Web.config of the application:
<appSettings>
<add key="API_ENDPOINT" value="http://localhost:55751/api/" />
</appSettings>
Requirements:
To perform Cartaotodos Project. It is necessary to have installed in the node.js, as it is used to host the application.
The API URL is located in the environmental variables file, at /src/environments/environment.ts or /src/environments/environment.prod.ts depending on the environment that is executed.
export const environment = {
...
api_endpoint: 'http://localhost:55751/api'
};
With Node.js installed, just write the project dependence and execute it:
$ cd CartaoTodos.Angular
$ npm install
$ npm start
$ Aplicação rodando em http://localhost:8000