# How to add Calendar App in starter-kit
Materio uses fullcalendar (opens new window) for Calendar App. Follow these steps to integrate Calendar in starter-kit:
- Create a
store/apps
folder insrc/
- Copy Calendar folder from
full-version/src/store/apps/
tostarter-kit/src/store/apps/
- Create
index.ts
file instore
folder and add the following code:
// ** Toolkit imports
import { configureStore } from '@reduxjs/toolkit'
import calendar from 'src/store/apps/calendar'
export const store = configureStore({
reducer: { calendar },
middleware: getDefaultMiddleware =>
getDefaultMiddleware({
serializableCheck: false
})
})
export type RootState = ReturnType<typeof store.getState>
- Navigate to
src/pages/_app.tsx
& add the following imports
// ** Store Imports
import { store } from 'src/store'
import { Provider } from 'react-redux'
- Wrap your app with
<Provider store={store}>
to get access to the redux store. - Create a
@fake-db
folder. - Create
mock.ts
file in the newly created@fake-db
folder and add the following code:
import axios from 'axios'
import MockAdapter from 'axios-mock-adapter'
const mock = new MockAdapter(axios)
export default mock
- Create a
apps
folder in the@fake-db
and copyfull-version/src/@fake-db/apps/calendar.ts
file to the@fake-db/apps
folder. - Create
index.ts
file in the@fake-db
folder and add the following code:
import mock from './mock'
import './apps/calendar'
mock.onAny().passThrough()
- Add the following import in
src/pages/_app.tsx
:
// ** Fake-DB Import
import 'src/@fake-db'
- Copy
full-version/src/views/apps/calendar
folder tostarter-kit/src/views/apps/calendar
- Copy
full-version/src/pages/apps/calendar
folder tostarter-kit/src/pages/apps/calendar
- Finally add the calendar in
src/navigation/vertical/index.ts
andsrc/navigation/horizontal/index.ts
:
const navigation = () => {
return [
...
{
title: 'Calendar',
path: '/apps/calendar',
icon: 'mdi:calendar-blank-outline'
},
...
]
}