- Node.js
- MongoDB
- Postman
-
Clone the repository:
git clone https://github.com/Woolify/backend.git
OR
git clone [email protected]:Woolify/backend.git
-
Install dependencies:
npm install
-
Copy
config/config.env.sample
toconfig/config.env
:cp config/config.env.sample config/config.env
-
Edit
config/config.env
with your settings:PORT=8000 MONGO_URI=mongodb_connection_uri JWT_SECRET=your_secret_key SMTP_HOST=smtp_credentials_from_mail_test YOUTUBE_API_KEY=if_using_yt_streams VIMEO_ACCESS_TOKEN=if_using_vimeo
-
Ensure MongoDB is running.
-
Verify the MongoDB connection in
config/database.js
.
-
Development Mode (with auto-reloading):
npm run dev
-
Production Mode:
npm start
The app will run on http://localhost:8000
(or your specified port).
Start building your Node.js Express project with MongoDB as the database.
- Keep
config.env
secure; never commit it to public repos. - Delete or clear logs/access.log before pushing code to prod.
MIT License