This project is a blog application built with Nest.js for the backend and Next.js for the frontend.
Run the following command to clone the repository:
git clone [email protected]:Olexandr25/pecode-blog.git
cd pecode-blog
In the first terminal, ensure you are in the pecode-back
directory and install dependencies:
cd pecode-back
npm install
In the second terminal, ensure you are in the pecode-front
directory and install dependencies:
cd pecode-front
npm install
Create a .env
file in the pecode-back
directory based on the example file .env.example
:
cp .env.example .env
Create a .env
file in the pecode-front
directory based on the example file .env.example
:
cp .env.example .env
In the first terminal, ensure you are in the pecode-back
directory and start the server:
npm run start:dev
In the second terminal, ensure you are in the pecode-front
directory and start the server:
npm run dev
- Frontend: Open your browser and navigate to http://localhost:3000.
- Backend API: API documentation is available at http://localhost:4000/api.
Swagger documentation for the API is available at http://localhost:4000/api. It provides detailed information about the available API endpoints and allows you to test them directly from the browser.
This project uses Nest.js for the backend and Next.js for the frontend. To ensure everything works correctly, make sure you set up the environment variables as specified in the .env.example
files and start the servers in the correct order.
If you have any questions or issues, please contact the project author or create an issue in the repository.