fully functioning movie ticket booking web application with admin dashboard created using MERN Stack
- add
.env
file to root of the server directory and define port asPORT = '8000'
and add connection string asDATABASE = 'MONGODB_CONNECTION_STRING_HERE'
and define JSON Web Token secrect asJWT = 'JWT_SECRET'
- install necassary dependancies for server using
npm install
command - execute
npm start
command to run server - change your directory into client folder using
cd client
command - again install necassary dependancies for client using
npm install
command - run your client using
npm run dev
command
- Pull the Docker image from Docker Hub:
docker pull dcsenadheera/cinema
. - Run the Docker image:
docker run -p 8000:8000 dcsenadheera/cinema
.
The application should now be running at http://localhost:8000
.