Installation
Complete installation guide for AuthScape.
This guide covers the complete installation process for AuthScape.
System Requirements
Backend
- .NET 8 SDK or later
- Visual Studio 2022 or VS Code with C# extension
Frontend
- Node.js 18+
- npm or yarn
Database (one of)
- SQL Server 2019+
- PostgreSQL 14+
- SQLite 3
Step 1: Clone Repository
bash
git clone https://github.com/authscape/authscape.gitcd authscape
Step 2: Install Backend Dependencies
bash
cd AuthScape.APIdotnet restore
Step 3: Configure Database
Create appsettings.Development.json:
json
{"ConnectionStrings": {"DefaultConnection": "Your-Connection-String-Here"},"AppSettings": {"BaseUri": "https://localhost:5001"}}
SQL Server
text
Server=localhost;Database=AuthScape;Trusted_Connection=True;TrustServerCertificate=True
PostgreSQL
text
Host=localhost;Database=authscape;Username=postgres;Password=yourpassword
SQLite
text
Data Source=authscape.db
Step 4: Run Migrations
bash
dotnet ef database update
Step 5: Install Frontend Dependencies
bash
cd ../AuthScape.NextJSnpm install
Step 6: Configure Frontend
Create .env.local:
env
NEXT_PUBLIC_API_URL=https://localhost:5001NEXT_PUBLIC_CLIENT_ID=your-client-id
Step 7: Generate Certificates
For development HTTPS:
bash
dotnet dev-certs https --trust
Step 8: Start Services
Terminal 1 - Backend:
bash
cd AuthScape.APIdotnet run
Terminal 2 - Frontend:
bash
cd AuthScape.NextJSnpm run dev
Verify Installation
- Open https://localhost:5001/swagger - API documentation
- Open http://localhost:3000 - Frontend application
- Try registering a new user
Troubleshooting
Port Already in Use
bash
netstat -ano | findstr :5001taskkill /PID <pid> /F
Database Connection Failed
- Verify connection string
- Check database server is running
- Ensure database exists
Certificate Issues
bash
dotnet dev-certs https --cleandotnet dev-certs https --trust