Skip to content

eklavyamirani/react-dotnet-postgres-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 

Repository files navigation

[Optional] seed the database

Use seed_database.sql to seed the dev database.

To validate use psql -h db -U $PGUSER to connect to db.

Run the first time setup (automatic for devcontainer, only required for manual setup)

make -C .devcontainer makefile

Project Setup instructions

  1. Load the containers a. Load the devcontainer b. (or) use docker compose docker compose -f docker-compose.yml -f docker-compose.local.yml up --build --force-recreate -d

  2. [Optional] Setup claude code using claude command

create the react app in the container

npx create-react-app <appname>

create dotnet webapi

dotnet new webapi -o <project_name> --use-controllers --use-program-main

create dotnet gitignore

dotnet new gitignore

create new controller

dotnet new apicontroller --actions --name <controller name>

for devmode, enable cors

app.UseCors(builder => 
  builder.AllowAnyOrigin()
      .AllowAnyMethod()
      .AllowAnyHeader()
);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •