- A blog app built with .NET and NextJs.
-
User Authentication
- User registration and login functionality
- Only authenticated users can create, update, or delete posts
- Unauthenticated users can only view posts
-
Posting
- CRUD operations for blog posts (Create, Read, Update, Delete)
- Posts stored in a database using MSSQL.
-
Client
- Home page that lists all blog posts.
- Post detail page to view content of a specific post.
- Forms for creating and editing posts (only accessible to authenticated users).
- Login and registration page.
git clone https://github.com/adamchairly/SimpleBlog.git
cd SimpleBlog
cd Backend
dotnet ef database update
or in Package Manager Console
Update-Database
Then you can build the solution and that will run the server on localhost:7000
cd Frontend
npm install
create a file named called .env.local with this value:
NEXT_PUBLIC_API_BASE_URL=https://localhost:7000
then
npm run dev
It will run the client on localhost:3000