Giter Site home page Giter Site logo

cms's Introduction

CMS - 100xDevs

Table of Contents

Installation

With Docker

  1. Clone the repository:
git clone https://github.com/code100x/cms.git
git clone https://github.com/code100x/cms.git
  1. Navigate to the project directory:
cd cms
cd cms
  1. 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
docker volume create postgres-data # (optional) run this command if you face any mount volume / volume not exist error

docker-compose up

Without Docker

  1. Clone the repository:
git clone https://github.com/code100x/cms.git
  1. Navigate to the project directory:
cd cms
  1. (Optional) Start a PostgreSQL database using Docker:
docker run -d \

--name cms-db \

-e POSTGRES_USER=myuser  \

-e POSTGRES_PASSWORD=mypassword \

-e  POSTGRES_DB=mydatabase  \

-p 5432:5432 \

postgres

The connection URL for this setup will be:


DATABASE_URL=postgresql://myuser:mypassword@localhost:5432/mydatabase?schema=public

  1. Create a .env file based on the .env.example file and configure the DATABASE_URL with your PostgreSQL connection string.
cd cms
  1. (Optional) Start a PostgreSQL database using Docker:
docker run -d \

--name cms-db \

-e POSTGRES_USER=myuser  \

-e POSTGRES_PASSWORD=mypassword \

-e  POSTGRES_DB=mydatabase  \

-p 5432:5432 \

postgres

The connection URL for this setup will be:


DATABASE_URL=postgresql://myuser:mypassword@localhost:5432/mydatabase?schema=public

  1. Create a .env file based on the .env.example file and configure the DATABASE_URL with your PostgreSQL connection string.

  2. Install dependencies:

pnpm install
  1. Run database migrations:
pnpm run prisma:migrate
  1. Seed the database:
pnpm run db:seed
  1. Start the development server:
pnpm run dev

Usage

  1. Access the application in your browser at http://localhost:3000

  2. Login using any of the following provided user credentials:

Contributing

We welcome contributions from the community! To contribute to CMS, follow these steps:

  1. Fork the repository.

  2. Create a new branch (git checkout -b feature/fooBar).

  3. Make your changes and commit them (git commit -am 'Add some fooBar').

Before committing, ensure your code is properly formatted and linted:

  • Run npm run lint:check to check for lint errors
  • Run npm run lint:fix to automatically fix lint errors
  • Run npm run format:check to check code formatting
  • Run npm run format:fix to automatically fix formatting issues

Before committing, ensure your code is properly formatted and linted:

  • Run npm run lint:check to check for lint errors
  • Run npm run lint:fix to automatically fix lint errors
  • Run npm run format:check to check code formatting
  • Run npm run format:fix to automatically fix formatting issues
  1. Push to the branch (git push origin feature/fooBar).

  2. 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.

Contributors

Troubleshooting

Issues on macOS Silicon

If you encounter issues on macOS with Silicon chips, you may need to install some additional dependencies. Run the following command:


brew install pkg-config cairo pango libpng jpeg giflib librsvg

If you continue to face issues, please open a GitHub issue with details about the problem you're experiencing.

cms's People

Contributors

hkirat avatar siinghd avatar devsargam avatar nimit9 avatar vijaysingh2219 avatar vikaspatil0021 avatar tanmaydhobale avatar haddercone avatar tanayvaswani avatar pruthviraj7714 avatar mvp5464 avatar nischal-shetty2 avatar rash-hit avatar sujiththirumalaisamy avatar dhruvilmehta avatar vk-red avatar vanshavenger avatar rishabh-singh-codes avatar kethesainikhil avatar shubham1091 avatar punyakrit avatar dyaipayan22 avatar riturazzz avatar amanbairagi30 avatar neon-20 avatar gmin2 avatar zenithexe avatar hxdy-1 avatar sheninthjr avatar asharma991 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.