Files Manager
Description
Server is built on REST API technology using Express library. Client created with React and Redux. The project uses MySQL database and Knex library.
How to start the project:
First run the migration
- Go to directory database –
cd ./database
. - To install the dependencies –
npm install
. - To open file
database.json
and connect to MySQL. - To run the migration –
db-migrate up --config database.json
.
Next, start the server
- Go to directory server –
cd ./server
. - To install the dependencies –
npm install
. - Create environment variables (create file
.env
and add variables as in the file.env.example
); - To run the server –
npm run dev
.
And start the client
- Go to directory client –
cd ./client
. - To install the dependencies –
npm install
. - To run the client –
npm run start
.
Database
Run the migration:
db-migrate up --config database.json
Discard the migration:
db-migrate down --config database.json