https://github.com/ramon-mateus/lyrics-lab-api
Projeto de API do sistema de composição de músicas e cifras chamado Lyrics Lab.
https://github.com/ramon-mateus/lyrics-lab-api
api-rest aspnet-web-api csharp entity-framework
Last synced: about 2 months ago
JSON representation
Projeto de API do sistema de composição de músicas e cifras chamado Lyrics Lab.
- Host: GitHub
- URL: https://github.com/ramon-mateus/lyrics-lab-api
- Owner: Ramon-Mateus
- Created: 2024-06-11T22:46:06.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2025-04-05T17:28:20.000Z (2 months ago)
- Last Synced: 2025-04-05T17:34:10.499Z (2 months ago)
- Topics: api-rest, aspnet-web-api, csharp, entity-framework
- Language: C#
- Homepage:
- Size: 146 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Instalar
- .Net 8+: [Aqui](https://dotnet.microsoft.com/pt-br/download)
- Execute esse comando para baixar a ferramenta do Entity Framework para gerenciar migrations e updates no banco:
```shell
dotnet tool install --global dotnet-ef
```## Docker
- Subir o container do Postgres:
```shell
docker run --name postgres -e POSTGRES_USER=admin -e POSTGRES_PASSWORD=SenhaForte123# -p 5432:5432 -d postgres
```- Se já criou o container anteriormente, para subir novamente basta rodar esse comando:
```shell
docker start postgres
```- Para verificar se o container subiu e rodou corretamente execute o comando abaixo no terminal e veja se o status está UP:
```shell
docker ps
```_Adiante, para rodar o projeto basta estar na raiz e rodar os comandos abaixo em sequência. Eles vão, respectivamente, criar a migration e atualizar o banco e ,por fim, rodar o projeto._
## .Net
- Criar a migration
```shell
dotnet ef migrations add CreateTables
```- Atualizar o banco com as migrations criadas
```shell
dotnet ef database update
```- Rodar o projeto
```shell
dotnet run
```