- Create a new, empty folder called opensource/ in your computer's home folder.
- Navigate to it (
cd opensource
), then fork and clone the ams repo so that it gets downloaded into opensource/ams. - Navigate to this folder (
cd ams
) and rungit remote add upstream https://github.com/codethechange-niec/ams.git
(or, if you're using SSH, usegit@github.com:codethechange-niec/ams.git
) to add an upstream remote that's linked to ams's main repository. (This will be necessary when submitting PRs later.) - Create a new database(MySQL):
mysql -u root -p
(Enter root password when prompted)- Create new user:
CREATE USER 'ams_user'@'localhost' IDENTIFIED BY 'ams@123';
- Grant all privileges to the user you just created:
GRANT ALL PRIVILEGES ON * . * TO 'ams_user'@'localhost';
- Exit from mysql:
exit
- Login in with the ams_user:
mysql -u ams_user -p
- create database named ams:
CREATE DATABASE ams;
- Exit from mysql:
exit
- Import database settings:
mysql -u ams_user -p ams < ams.sql
- Create application environment variables:
cp .env.example .env
- Run
npm install
to install required dependencies. - Run the server:
npm start
- Open http://localhost:3000 in the browser.
Before making any code changes read wiki(https://github.com/codethechange-niec/ams/wiki#instructions-for-making-a-code-change)