- Clone the repo
git clone git@github.com:bhklab/XevaDB.git
cd XevaDB- In the project directory, install all server dependencies
npm i - Create .env using .env.example as a reference to access the database
- Start the server by running
npm startornpm run devstart(development mode) ornodemon start(to see the live updates) command - Start the client (development mode) by running
npm start - Open http://localhost:3000 to view it in the browser.
- ReactJS
- React-Router
- NodeJS/ExpressJS
- KnexJS
- Body-parser
- Nodemon
- Eslint
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
- Production Server: http://xevadb.ca
- Testing Server: http://beta.xevadb.ca
- If knex is globally available use
knexwith the specific command else use./node_modules/.bin/knex. knex migrate:make (migration_name)- To create a new migration file.knex migrate:latest- To run the latest migrations and create corresponding tables.
- Create manually a file (
touch file_name). - Run
knex seed:runto run the seeding file(s) in order to seed the table(s) in the database.