These instructions have been tested on Ubuntu
You can see our full repo on github, along with our issues at https://github.com/blchelle/capstone
Check out it out live at http://3.16.27.120:8080/
sudo apt update
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.profile
nvm install 16
sudo npm i -g corepackConfirm this by running the following. Ensure the node version is higher than v16.0.0
$ yarn --version
1.22.15
$ node -v
v16.14.2- Install and set up mySQL
sudo apt install mysql-serverStart the server:
sudo systemctl start mysql.serviceOR
sudo service mysql start #works on WSLNow connect to the database and set up a root account with no password:
sudo mysqlALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';
FLUSH PRIVILEGES;
EXIT;- Install all npm dependencies From within project root
yarn- Create a new database
yarn dev:db- Run tests:
yarn test- Run the development environment:
yarn dev- Check out the website:
Navigate to http://localhost:3000/
- Generate prisma type definitions for database
yarn prisma:generate- Migrate prisma schema to mysql database
yarn prisma:migrate:dev- Start prisma studio to view the database in a web UI
yarn prisma:studio:dev- Reset database to a seeded sample db with existing races and users
yarn prisma:reset:devgit remote add origin git@github.com:blchelle/capstone.git
git remote add production ece493_YOURCCID@gitrepo.ece.ualberta.ca:ece493_YOURCCID.git