This is a Node.js Express server that integrates several npm packages such as Express, MongoDB, CORS, dotenv. This one serves the client side of Crowdcube.
- Express.js: Web framework for building the server
- MongoDB: Database for storing user data and other information
- CORS: Enabling cross-origin requests for the server
- dotenv: Environment variable management
Make sure you have the following installed on your local machine:
- Node.js
- A MongoDB instance (either local or cloud-based like MongoDB Atlas)
-
Clone the repository to your local machine:
git clone git@github.com:sakib-333/crowdcube-client.git cd crowdcube-client -
Install dependencies
npm install
-
Create a
.envfile root of the folder and all of your secret keys.DB_USERNAME=<your-db-username> DB_PASSWORD=<your-db-password>
-
Start server
node index.js
-
Your server should now be running on
http://localhost:3000.