This is a Single Page Application (SPA) built with React and TypeScript, with a Node.js/Express backend and MongoDB database.
frontend/
: React TypeScript frontendbackend/
: Node.js/Express TypeScript backend
Before you begin, ensure you have met the following requirements:
- You have installed the latest version of Node.js and npm
- You have a Windows/Linux/Mac machine.
- You have read this guide.
- You have MongoDB installed and running.
To install and run My SPA Project, follow these steps:
-
Clone the repository
-
Install dependencies
cd driscrolls && npm install cd ../backend && npm install
- Set up environment variables
- In the
backend
folder, create a.env
file with the following content:PORT=5000 MONGODB_URI=your_mongodb_connection_string JWT_SECRET=your_jwt_secret NODE_ENV=development
- In the
frontend
folder, create a.env
file with:VITE_API_URL=http://localhost:5000/api VITE_APP_ENV=development
- Start the backend server
cd backend npm run dev
- In a new terminal, start the frontend development server
cd frontend npm run dev
- Open your browser and visit
http://localhost:5173
(or the port Vite is running on)
- User management (view, create, edit, delete)
- News management (view list and details)
- Multi-language support (English and Spanish)
- Frontend: React, TypeScript, Vite
- Backend: Node.js, Express, TypeScript
- Database: MongoDB
- State Management: [Your choice, e.g., Redux, Context API]
- Internationalization: i18next
Contributions to the My SPA Project are welcome. Please adhere to this project's code of conduct
.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project uses the following license: MIT License.
If you want to contact me you can reach me at your_email@example.com.