A backend API for the Novel Platform, providing novel metadata and chapter retrieval.
Repository: DragonBolta/novels-api
- π Serve novel metadata: title, author, tags, description, rating, likes
- π Retrieve chapters for novels
- β‘ RESTful API endpoints for frontend consumption
- π₯ Backend: Node.js, Express
- πΎ Database: MongoDB
- π³ Deployment: Docker
Pull and run the latest backend image:
# Pull the latest backend image
docker pull alvin1212/novels:api-latest
# Run the container
docker run -d -p 3000:3000 --name novels-api alvin1212/novels:api-latest
- π API is available at http://localhost:3000
Stop and remove the container:
docker stop novels-api
docker rm novels-api
To run the backend locally:
# Clone the repository
git clone https://github.com/DragonBolta/novels-api.git
cd novels-api
# Install dependencies
npm install
# Configure environment variables in a .env file (MongoDB URI, etc.)
npm start
The API is consumed by the Novels Frontend: DragonBolta/novels-frontend