This repository contains the backend code for the "Incidir Para Existir" project. The backend is responsible for handling API requests, managing the database, and providing data to the frontend.
- Node.js
- Express.js
- MySQL 8
- Sequelize ORM
- Node.js (v14 or higher)
- MySQL 8
- Clone the repository:
git clone https://github.com/yourusername/incidir-para-existir.git
- Navigate to the backend directory:
cd incidir-para-existir/backend
- Install dependencies:
npm install
CREATE DATABASE production_movilizatorio
CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
CREATE USER 'production_movilizatorio'@'%' IDENTIFIED BY 'YourStrongPassword';
GRANT ALL PRIVILEGES ON production_movilizatorio.* TO 'production_movilizatorio'@'%';
FLUSH PRIVILEGES;
Copy the .env.example
file to .env
and update the values as needed.
- Start the development server:
npm run dev
- The server will be running at
http://localhost:3000
. (In case you have changed the port number, the server will be running athttp://localhost:your_port_number
)
You can execute this to get a quick mysql database running:
docker run -d --name mysql8 -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -v ~/databases/mysql8:/var/lib/mysql mysql:8
Make sure to change the password and the volume path to your needs.
Contributions are welcome! Please fork the repository and create a pull request with your changes.