Smart Spender is a web application designed to help users manage and organize their money in order to avoid financial issues. In addition to its budget tracking features, Smart Spender also includes a blog to provide financial management tips and tricks.
Smart Spender is built using Node.js, React.js, Express.js, Monggose, and Mongodb Atlas. These technologies provide a robust and scalable foundation for the app, allowing for efficient data processing and storage. The app is designed to be user-friendly, with a clean and intuitive interface that makes it easy for users to track their spending and achieve their financial goals.
- User registration and login: Users can create accounts and securely log in to access the app's features.
- Budget tracking: Users can track their income and expenses, set budgets, and receive alerts when they exceed their budget.
- Expense categorization: Users can categorize their expenses to get a clear picture of their spending habits.
- Goal setting: Users can set financial goals, such as saving for a vacation or paying off debt, and track their progress towards those goals.
- Spending analysis: Provides users with detailed insights and analysis of their spending habits, including charts and graphs that make it easy to understand their financial situation.
- Financial management blog: Users can read articles on a variety of topics related to personal finance and money management, including budgeting tips, saving strategies, debt reduction techniques, investing advice, retirement planning, credit score improvement, frugal living ideas, and mindset shifts for better financial health.
- Node.js
- React.js
- Express.js
- Mongo DB Atlas
- Mongoose
- Clonez le référentiel sur votre machine locale.
- Naviguez vers le répertoire
server
en utilisant votre terminal/interface de commande. - Installez les dépendances requises en exécutant
npm install
. - Démarrez le serveur Node.js en exécutant
npm start
. - Naviguez jusqu'au répertoire
client
en utilisant votre terminal/interface de commande. - Installez les dépendances requises en exécutant
npm install
. - Démarrez le serveur de développement React en exécutant
npm start
.
- Démarrez le serveur Node.js en exécutant
npm start
dans le répertoireserver
, le fichierindex.js
:
import express from "express";
import dotenv from "dotenv";
import cookieParser from "cookie-parser";
import cors from "cors";
import db from "./config/Database.js";
import router from "./routes/index.js";
import * as bodyParser from "express";
dotenv.config();
const app = express();
app.use(cors({ credentials:true, origin:'http://localhost:3000' }));
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());
app.use(cookieParser());
app.use(express.json());
app.use(router);
app.listen(5000, ()=> console.log('Server running at port 5000'));
- Changer les prametres de la base de donnée pour les migration :
-
cd server/config/Database.js
-
Database.js :
import mongoose from 'mongoose'; mongoose.connect('mongodb+srv://ashraf:1453@cluster0.ujzqpy7.mongodb.net/?retryWrites=true&w=majority', { useNewUrlParser: true, useUnifiedTopology: true, }); const db = mongoose.connection; db.on('error', console.error.bind(console, 'connection error:')); db.once('open', function () { console.log('Connected to MongoDB!'); }); export default db;
-
- Démarrez le serveur de développement React en exécutant
npm start
dans le répertoireclient
. - Ouvrez votre navigateur et naviguez sur http://localhost:3000
- Les entreprises peuvent créer un compte et ajouter des offres de stage, et les étudiants peuvent postuler à des postes.
Feel free to fork this repository and make contributions.
This project is licensed under the MIT License.