The CSM App is a web application that provides a platform for users to manage their accounts, view posts, and interact with various features. The application is built using Django for the backend and Vue.js for the frontend. Docker is used for containerization to simplify the setup and deployment process.
- User registration and authentication
- Post creation and management
- Category management
- Onboarding information
- Country selection
- Topic management
- News source management
- Profile management
-
Clone the repository:
git clone https://github.com/ErfanShokrollahzadeh/csm_app.git cd csm_app -
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Apply the database migrations:
python manage.py migrate
-
Create a superuser account:
python manage.py createsuperuser
-
Start the development server:
python manage.py runserver
-
Navigate to the
app/vueappdirectory:cd app/vueapp -
Install the required dependencies:
npm install
-
Start the development server:
npm run serve
-
Build and start the Docker containers:
docker-compose up --build
-
Access the Django backend at
http://localhost:8000and the Vue.js frontend athttp://localhost:8080.
- Ensure the virtual environment is activated.
- Run the tests:
python manage.py test
-
Navigate to the
app/vueappdirectory:cd app/vueapp -
Run the tests:
npm run test
This project is licensed under the MIT License. See the LICENSE file for details.