ServiceBac is a versatile website template and framework designed to facilitate the creation of platforms for service advertising and search. It provides functionality for two types of accounts: company and department. A company account enables businesses to showcase their services with detailed descriptions and markdown support, while a department account allows regular users to search for these services using advanced semantic search capabilities.
- Frontend: Vite, React with TypeScript
- Backend: Node.js, Express.js, Python
- Database: MongoDB
- Semantic Search: CohereAI for generating embeddings
- Stack: Essentially a MERN (MongoDB, Express.js, React, Node.js) stack
- Semantic Search: Utilizes advanced semantic search powered by CohereAI to enhance service discovery.
- Scalability: Built on the MERN stack, ServiceBac offers scalability and flexibility for handling growing amounts of data and users.
Clone the repository:
git clone https://github.com/itsmarsss/servicebac.git
To start website
-
Setup the backend:
cd servicebac/back-end npm install npm run devStart
-
Make sure
.env
file contains MongoDB URI and CohereAI API key.Check
.env.example
to see formatting -
Access the website at http://localhost:3000.
The back-end already contains a front-end prebuild version
To update ServiceBac front-end
-
Setup the frontend:
cd servicebac/front-end npm install npm run build
If you're in
/back-end
do:cd .. cd front-end npm install npm run build
-
Move the built frontend assets to the backend:
mv dist/* ../back-end/build/
This should include an
assets
folder andindex.html
file
Refer to the documentation for the ServiceBac API in the docs
directory or on the GitHub live page.
Contributions to ServiceBac should aim to maintain its flexibility and general-purpose nature. Updates that narrow the focus of ServiceBac may be rejected.
ServiceBac is licensed under the Apache-2.0 License.
For support or inquiries, please open an issue on GitHub or join our Discord Server.