- Ensure you have ruby (version 3.2) installed, for instructions see the Install Rails Howto.
- Ensure you have node.js installed
- Ensure you have the postgresql database installed
- macOS:
brew install postgresqlthen follow instructions - windows: https://www.postgresql.org/download/windows/, then follow instructions and make a note of the username & password
- Linux: depending on your distribution install, configure and start
postgresql:
- Create user in posgres:
sudo -u postgres createuser username - Give permission to user to create database:
sudo -u postgres psqland in the postgres terminal:ALTER USER username CREATEDB;
- Create user in posgres:
- macOS:
- Ensure you have PostGIS installed. For instructions, check the project's website.
- Clone the repository to your computer
git clone https://github.com/sharkipedia/sharkipedia.git - Move into the project folder (
cd sharkipedia) - Install project dependencies:
bundle install - Windows/Linux: in the
config/database.ymlconfigure the username and password under development which you set during the installation of postgresql. macOS: if you installed postgres withbrewyou don't need to do anything, if you installed postgres in another way you might have to configure a username and password - Initialize the database
rake db:setup(if this command throws anrole "username" does not existorpermission denied to create databaseerror, see above to create postgres user and give permission) - Run the rails server
rails server - Connect to the application in your browser at
http://localhost:3000
The original logo was taken from https://svgsilh.com/image/1085669.html