Blogify is a place where users can log into to share their thoughts, idea and experiences.
APACHE-2.0 License
Blogify is a place where users can log into to share their thoughts, idea and experiences.
System Design outlining the architecture of application, describes how different components interact, data flow, and the reasoning behind the design decisions.
This is a Next.js project bootstrapped with
create-next-app
.
Before you begin, ensure you have the following installed:
git clone [email protected]:MohammadShehadeh/blogify.git
cd blogify
nvm use
The following environment variables are required for the proper functioning of the project.
Create a .env
file in the root directory and add the following values:
NEXT_PUBLIC_VERCEL_URL
NEXT_PUBLIC_VERCEL_URL=https://your-vercel-app.vercel.app
POSTGRES_PRISMA_URL
POSTGRES_URL_NON_POOLING
postgres://user:password@host:port/database
AUTH_SECRET
AUTH_SECRET=your_secure_secret_key
npm ci
npm run dev
Open http://localhost:3000 with your browser to see the result.
In the project directory, you can run:
npm run build
Builds the app for production to the .next
folder.
It correctly bundles Next in production mode and optimizes the build for the best performance.
note: make sure to create a .env
file in the root directory before running this command
npm run start
Execute this script to run the Next.js app in production mode. Once the app is running,
you can access it in the browser at http://localhost:3000
This command is typically used after running the npm run build
script.
npm run prettier
Prettier is used for code formatting. To ensure consistent formatting throughout the project.
This command will automatically format the code based on the rules defined in the .prettierrc.js
configuration file.
npm run lint
Run the linter to analyze the code for potential errors.
npm run test
Run the tests to analyze the code for potential bugs.
To learn more about Next.js, take a look at the following resources:
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!