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 corepack
Confirm 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-server
Start the server:
sudo systemctl start mysql.service
OR
sudo service mysql start #works on WSL
Now connect to the database and set up a root account with no password:
sudo mysql
ALTER 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:dev
git remote add origin git@github.com:blchelle/capstone.git
git remote add production ece493_YOURCCID@gitrepo.ece.ualberta.ca:ece493_YOURCCID.git