Srcing is a cloud image storage service that allows you to generate direct image links. This project is built with Next.js and utilizes Cloudinary for image storage and MongoDB for data management.
To install Srcing and its dependencies, run the following command:
npm install
Srcing provides a simple way to store images in the cloud and generate direct image links. To run the development server, use:
npm run dev
Before deploying Srcing, make sure to configure the following environment variables:
CLOUDINARY_API_KEY
: Your Cloudinary API key.CLOUDINARY_PRESET_NAME
: Your Cloudinary preset name.CLOUDINARY_CLOUD_NAME
: Your Cloudinary cloud name.MONGO_URL
: Your MongoDB database URL.
Create a .env
file in the project root and add these variables.
CLOUDINARY_API_KEY=your_api_key
CLOUDINARY_PRESET_NAME=your_preset_name
CLOUDINARY_CLOUD_NAME=your_cloud_name
MONGO_URL=your_mongodb_url
To deploy Srcing, ensure you have configured the required environment variables. Then, run:
npm run build
npm start
Your application will be accessible at http://localhost:3000
by default.
Feel free to contribute to Srcing by following these steps:
- Fork the repository
- Create a new branch (
git checkout -b feature/my-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin feature/my-feature
) - Open a pull request
This project is licensed under the MIT License.