This project is a simple MERN (MongoDB, Express, React, Node.js) application developed for the ACES MERN Workshop 1.0. It includes a form to submit responses and a page to view all submitted responses.
- Node.js (v22.x & above)
- npm (Node Package Manager)
- MongoDB Atlas
-
Install Node.js and npm
Download and install Node.js from the official website. npm is included with Node.js.
-
Clone the repository
git clone https://github.com/your-username/MERN-FEB-MARCH.git cd MERN-FEB-MARCH -
Install project dependencies
npm install
-
Set up environment variables
Create a
.envfile in the root of your project directory and add your MongoDB connection string:MONGO_URI=your_mongodb_connection_string
Replace
your_mongodb_connection_stringwith your actual MongoDB connection string.
You can start the project in development mode using nodemon or in production mode using node.
-
Development mode
npm run dev
-
Production mode
npm start
Open your browser and navigate to http://localhost:3000 to access the application.
app.js: Main application file.views/index.ejs: Form to submit responses.views/responses.ejs: Page to view all submitted responses..env: Environment variables file (not included in the repository).package.json: Project metadata and dependencies.
To deploy your application to Vercel, just push to your repository & Vercel will continuously auto-deploy your app ;)
[Vercel Account Required]
Happy coding! If you have any questions, feel free to reach out to the ACES RMDSSOE team.