NewsProject is a web application that allows users to read and share news articles on a variety of topics. This project was created as a university project for the MEAN stack with Angular 1.
To get started with the project, follow these steps:
Before running the application, you will need to have the following installed on your machine:
- Node.js
- MongoDB
- Clone the repository:
git clone https://github.com/Alessandroinfo/NewsProject.git
- Navigate to the project directory:
cd NewsProject
- Install dependencies for the server side:
npm install
- Navigate to the client directory:
cd client
- Install dependencies for the client side:
bower install
- Return to the project directory:
cd ..
- Edit the
config/env.json
file with the details of your running MongoDB instance, like this:
{
"dev": {
"MONGO_URI": "your-mongodb-uri",
"MONGO_PORT": "your-mongodb-port",
"MONGO_DB": "news_project_db",
"REDIRECT_ROUTES": {
"home": "/#/",
"admin": "/#/admin"
}
},
"prod": {
"MONGO_URI": "your-mongodb-uri",
"MONGO_PORT": "your-mongodb-port",
"MONGO_DB": "news_project_db",
"REDIRECT_ROUTES": {
"home": "/#/",
"admin": "/#/admin"
}
}
}
Replace the your-mongodb-uri
and your-mongodb-port
placeholders with the appropriate details for your MongoDB
instance.
Before running the application, make sure your MongoDB instance is running.
- Start the server by running
node server.js
from theserver
directory. - Start the client by running
npx http-server
from theclient
directory. - Open your browser and navigate to
http://localhost:8080/
to use the application.
Note that the server and client must be running simultaneously for the application to function properly.
The following technologies were used to build the project:
- MongoDB
- Express.js
- Angular 1
- Node.js
Contributions to the project are welcome! If you'd like to contribute, please fork the repository and submit a pull request with your changes.
This project was created by Alessandroinfo as a university project for the MEAN stack with Angular 1.