Get the production license from Metajob- Job Board App with Nextjs & Strapi
Here’s the complete documentation in markdown format for easy copying and pasting:
Before starting, ensure you have the following installed on your machine:
- Node.js (v20 or higher)
- PostgreSQL (Ensure PostgreSQL is running and accessible)
- pnpm (Recommended for managing dependencies)
To install pnpm
, you can run the following command:
npm install -g pnpm
-
- Fork the repository to your GitHub account.
- Open the project in your preferred code editor (e.g., VS Code)
-
Inside both
apps/backend
andapps/site
, you will find.env.example
files. -
Rename these files to
.env
:apps/backend/.env.example
→apps/backend/.env
apps/site/.env.example
→apps/site/.env
-
Update the environment variables with your specific configuration. Ensure you provide the correct values for PostgreSQL and other necessary services.
Example
.env
file structure:DATABASE_URL=postgres://user:password@localhost:5432/mydatabase NEXT_PUBLIC_API_URL=http://localhost:1337
-
Ensure your PostgreSQL database is set up and running before proceeding.
export LICENSE_TOKEN='You will recive license on confirmation email'
@padma:registry=https://api.keygen.sh/v1/accounts/88de7a21-b541-48e5-8727-f992ebeb43fa/artifacts/
//api.keygen.sh/v1/accounts/88de7a21-b541-48e5-8727-f992ebeb43fa/artifacts/:_authToken=$LICENSE_TOKEN
From the root of your project directory, run the following command to install all dependencies:
pnpm install
- Navigate to the root directory and run the backend using the following command:
pnpm -F @padma/backend dev
- Strapi backend will now be running at
http://localhost:1337
.
- In a new terminal, run the frontend application:
pnpm -F @padma/frontend dev
- Next.js frontend will be running at
http://localhost:3000
.
To be added later.
To be added later.
-
Backend: Powered by a headless Strapi CMS with PostgreSQL as the database. Learn more about Strapi
-
Frontend: Built with Next.js for fast rendering and MUI for a modern, responsive user interface.
-
apps/backend:
└── The backend is built with Strapi, providing APIs to power the frontend. -
apps/site:
└── This is the frontend of the project, built using Next.js and MUI. -
apps/packages:
└── Contains reusable components, such as themes.@padma/metajob-ui:
└── This package includes the theme for the job listing solution.