Example of backend using the company Ocian - Barra Bonita.
Project made in C# - AspNet Core containing 3 contact forms stored in the Postgresql database and another for resumes sent via email.
Obs: This is another version of the same API in Rust but rewritten in C#.
To compile the project, download the repository and run the following command:
$ dotnet run
Create the .env file in the project root with the following example information:
SERVER="yourserver.com"
DATABASE_NAME="your_database_name"
PORT="5432"
DB_USER="your_database_user"
DB_PASSWORD="your_database_password"
HOST="smtp.gmail.com"
USERNAME="[email protected]"
PASSWORD="your_smtp_account_password"
EMAIL="[email protected]"
Remembering that the information above is TOTALLY an example, so it is possible to use any other SMTP server, for example.
To test the API, run the project:
$ dotnet run
If something similar to:
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://localhost:5156
Copy the address and in a browser put for example:
http://localhost:5156/swagger/index.html
After inserting the modified url, the default swagger page should appear with the test routes.