This repo holds the backend code for events registration.
Note There are two folders here, js and ts. The js folder holds the javascript version of the backend and the ts folder holds the typescript version of the backend. The ts folder is still under development. So, it is recommended to use the js folder.
This method of running the app is not recommended. It is recommended to run the app through docker.
- Clone this repo and cd into the
js
folder.git clone [email protected]:kiranadh1452/event-registrator-backend.git cd event-registrator-backend/js
- Install the dependencies.
npm install
- Open the file src/config/config.example and fill in the required fields.
- Rename the file to
config.env
. - Run the following command:
npm start
Easy as pie. Just make sure that you have docker and docker-compose installed on your machine.
-
Clone this repo.
git clone [email protected]:kiranadh1452/event-registrator-backend.git
-
Open the file src/config/config.example and fill in the required fields.
-
Rename the file to
config.env
. -
Then run the following command:
docker build -t ev-reg-back . docker-compose up
While running the command, make sure that the active directory is the same as the
docker-compose.yml
file.
This method is not recommended. I only created this script to make my life easier. This script was originally made to automate the tasks of docker image creation and publishment to docker hub. It is recommended to run the app through docker.
Open the file src/config/config.example and complete the instructions in the file.
Then run the following commands:
sudo chmod +x run-backend.sh
sudo ./run-backend.sh