Next.js Discord

Discord Forum

Don't want CMS but still want to edit website in real time

Answered
arnez posted this in #help-forum
Open in Discord
Avatar
arnezOP
I'm currently working on a project for a client, and I prefer not to incorporate a Content Management System (CMS). Instead, I envision a straightforward process where the client can easily drag and drop an Excel file. My application would then read the data from that file. To provide additional context, the project involves creating a customizable restaurant menu for the client.
Answered by arnez
Yeah i decided to use sanity as it has free cloud hosting. My client won't need more than free tier so thats great just a little bit of work to do. Thank you for help!
View full answer

10 Replies

Avatar
B33fb0n3
you can build your own data system to provide the specific use case for your client. It's like a cms for your specific use case from your client @arnez
Avatar
arnezOP
I want something that doesn't need db to interact with. Interactions are made with file. And I want that inside my website not like separated project. Is it doable?
Avatar
B33fb0n3
you can do that by creating a file inside your website folder and the client can change stuff inside the file your website reads from this file.

For example you have this todoList in your project:
export const todoLists = [
    {
        id: 1,
        title: "Todo #1",
        content: "hello world"
    },
    {
        id: 2,
        title: "Todo #2",
        content: "I am a text"
    },
    {
        id: 3,
        title: "Todo #3",
        content: "some other text"
    }
]

Send this file to the client and tell him, that he can change for example the title from Todo #2 just by changing it. After the change he can send the file back (or directly upload it somewhere or whatever)
Avatar
arnezOP
This is a little bit clunky because they could mess up whole code if they are clunky
I don't want to give them direct access to the code
i want them to be able to change on the website at /admin for example i just don't want to use cms i want to convert excel file to this as they know excel the best
and also i don't want to pay for extra hosting costs for cms
Avatar
B33fb0n3
yea, the client can destroy your whole project with it. CMS are safe.. (in most cases). You can try to integrate a excel to json converter. Enter your excel and your website get's json. The problem is: the data (file or only it's contents) need to be saved somewhere. And it costs more to save a whole file then saving the data inside it
Avatar
arnezOP
Yeah i decided to use sanity as it has free cloud hosting. My client won't need more than free tier so thats great just a little bit of work to do. Thank you for help!
Answer
Avatar
B33fb0n3
np, please mark solution