- Clone the repository:
git clone https://github.com/code100x/cms.git
- Navigate to the project directory:
cd cms
- Run the following command to start the application:
docker volume create postgres-data # (optional) run this command if you face any mount volume / volume not exist error docker-compose up
- clone the repository:
git clone https://github.com/code100x/cms.git
- Navigate to the project directory:
cd cms
- (optional) Start a PostgreSQL database using Docker:
based on this command the connection url will be
docker run -d \ --name cms-db \ -e POSTGRES_USER=myuser \ -e POSTGRES_PASSWORD=mypassword \ -e POSTGRES_DB=mydatabase \ -p 5432:5432 \ postgres
DATABASE_URL=postgresql://myuser:mypassword@localhost:5432/mydatabase?schema=public
- Create a
.env
file based on the.env.example
file and configure theDATABASE_URL
with your postgreSQL connection string. - Install dependencies:
npm install
- Run database migrations:
npm run prisma:migrate
- Seed the database:
npm run db:seed
- Start the development server:
npm run dev
- Access the aplication in your browser at
http://localhost:3000
- Login using any provided user credentials
- (email:
[email protected]
, password:123456
) - (email:
[email protected]
, password:123456
)
- (email:
We welcome contributions from the community! To contribute to CMS, follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/fooBar
). - Make your changes and commit them (
git commit -am 'Add some fooBar'
).Make sure to lint and format your code before commiting
npm run lint:check
to check for lint errorsnpm run lint:fix
to fix lint errorsnpm run format:check
to format the codenpm run format:fix
to fix the formatting
- Push to the branch (
git push origin feature/fooBar
). - Create a new Pull Request.
For major changes, please open an issue first to discuss what you would like to change.
Read our contribution guidelines for more details.
brew install pkg-config cairo pango libpng jpeg giflib librsvg