Before you begin, ensure you have met the following requirements
- Node.js and npm installed on your machine.
- Docker installed (optional, required for Docker setup).
- Access to a PostgreSQL database (can be local or hosted).
- Clone the repository:
git clone https://github.com/your-username/cms.git
- Navigate to the project directory:
cd cms
- Run the following command to start the application:
docker-compose up
- clone the repository:
git clone https://github.com/your-username/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:dev
- 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.