This is a web app, where you can put up lottery draw events as well as participate in them. You can see the upcoming events and the previous draw winners too.
Project is created with:
- Reactjs, Material UI (Frontend)
- Nodejs, Express (Backend)
- Mongodb (Database)
- src
- components: Contains various react components which are to be used in the project
- index.js: entry point of the react app
- public: contains all the static assets like html, logos and styles file which are to be served.
- db/mongoose.js: Configures the database.
- models: Defines different mongoose models.
- routes: Defines routers for the main express app.
- app.js: Instantiates and configures the main app.
- Backend: https://lottery-app-1918.herokuapp.com
- Frontend: https://lottery-app-1918.netlify.app
To run this project, install it locally using npm and yarn, respectively.
Make a .env file and give a database uri as DATABASE_URL. Make sure your database is running properly.
Then For development
$ cd backend
$ npm install
$ node app.js
Default port has been set to 8080.
$ cd frontend
$ npm install
$ npm start
Default port has been set to 3000